]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] camellia: Code cleanup
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Nov 2007 14:13:40 +0000 (22:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:07 +0000 (08:16 +1100)
commitbf7fe7540bfbd664babdc80b465cf7a38db3222f
tree9c6c9b99f46b74f329e4ad850273c023b85f78c0
parent49d81ff97e7eb3086db95de089624a2cea23cf8d
[CRYPTO] camellia: Code cleanup

Optimize GETU32 to use 4-byte memcpy (modern gcc will convert
such memcpy to single move instruction on i386).
Original GETU32 did four byte fetches, and shifted/XORed those.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Acked-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/camellia.c