]> git.ipfire.org Git - thirdparty/nettle.git/commit
Recode xts_shift based on endianess
authorSimo Sorce <simo@redhat.com>
Wed, 20 Mar 2019 15:46:22 +0000 (11:46 -0400)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 24 Mar 2019 10:42:31 +0000 (11:42 +0100)
commit794d2169c8614332f60bc29faf0010dcd0a31627
tree95296b2223c6d3e3542c337b476e69372d986885
parent8702a4c48ae2381dd2994e5053961044fca89676
Recode xts_shift based on endianess

This creates two implementations of xts_shift, one for little endian and
one for big endian. This way we avoid copies to additional variables and
inefficient byteswapping on platforms that do not have dedicated
instructions.

Signed-off-by: Simo Sorce <simo@redhat.com>
xts.c