# autogen_f0_asm.rb
=begin
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2006-2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
=end
=begin
tmp = +t[ 5] +t[10] +t[13] +(tr1=-t[ 7]+t[14]) ;
q[ 0] = S32_0(tmp) + h[ 1];
tmp = +t[ 8] +t[13] +t[ 0] -(tr2=+t[ 1]+t[10]) ;
q[ 3] = S32_3(tmp) + h[ 4];
tmp = -t[11] +t[13] -t[ 0] -t[ 3] +t[ 4] ;
q[ 6] = S32_1(tmp) + h[ 7];
tmp = +t[ 0] +(tr0=-t[ 3]+t[ 6]) +(tr1) ;
q[ 9] = S32_4(tmp) + h[10];
tmp = -t[ 9] -(tr0) +(tr2) ;
q[12] = S32_2(tmp) + h[13];
tmp = -t[ 4] +(tr0=-t[ 9]+t[12]) +(tr1=-t[ 6]+t[13]) ;
q[15] = S32_0(tmp) + h[ 0];
tmp = +t[ 7] +t[15] +t[ 0] -(tr0) ;
q[ 2] = S32_2(tmp) + h[ 3];
tmp = +t[10] +(tr0=-t[ 2]+t[15]) +(tr2=+t[ 3]-t[12]) ;
q[ 5] = S32_0(tmp) + h[ 6];
tmp = -t[ 5] -(tr0) +(tr1) ;
q[ 8] = S32_3(tmp) + h[ 9];
tmp = -t[ 0] -t[ 2] +t[ 9] +(tr0=-t[ 5]+t[ 8]) ;
q[11] = S32_1(tmp) + h[12];
tmp = -t[11] +(tr0) +(tr2) ;
q[14] = S32_4(tmp) + h[15];
tmp = +t[ 6] +(tr0=+t[11]+t[14]) -(tr1=+t[ 8]+t[15]) ;
q[ 1] = S32_1(tmp) + h[ 2];
tmp = +t[ 9] +t[ 1] +t[ 2] -(tr0) ;
q[ 4] = S32_4(tmp) + h[ 5];
tmp = -t[12] -t[14] +t[ 1] -t[ 4] -t[ 5] ;
q[ 7] = S32_2(tmp) + h[ 8];
tmp = -t[ 1] -(tr0=+t[ 4]+t[ 7]) +(tr1) ;
q[10] = S32_0(tmp) + h[11];
tmp = +t[ 2] +t[10] +t[11] +(tr0) ;
q[13] = S32_3(tmp) + h[14];
=end
$c_code = <