From: Niels Möller Date: Sun, 30 Dec 2012 07:10:29 +0000 (+0100) Subject: Disabled use of sha3-permute.asm X-Git-Tag: nettle_2.6_release_20130116~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec8a13dd982ab6b2d312668cbe56ee0df1783ad;p=thirdparty%2Fnettle.git Disabled use of sha3-permute.asm --- diff --git a/ChangeLog b/ChangeLog index e1c23c7a..49114116 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-12-30 Niels Möller + + * configure.ac: Disabled use of sha3-permute.asm. + 2012-12-20 Niels Möller From Tim Rühsen: diff --git a/configure.ac b/configure.ac index 737febbd..5fc2a5ba 100644 --- a/configure.ac +++ b/configure.ac @@ -245,7 +245,7 @@ if test "x$enable_assembler" = xyes ; then md5-compress.asm memxor.asm \ salsa20-crypt.asm salsa20-core-internal.asm \ serpent-encrypt.asm serpent-decrypt.asm \ - sha1-compress.asm sha3-permute.asm machine.m4; do + sha1-compress.asm machine.m4; do # echo "Looking for $srcdir/$asm_path/$tmp_f" if test -f "$srcdir/$asm_path/$tmp_f"; then # echo found diff --git a/x86_64/sha3-permute.asm b/x86_64/sha3-permute.asm index 34cf6bcc..0ebd70c1 100644 --- a/x86_64/sha3-permute.asm +++ b/x86_64/sha3-permute.asm @@ -17,6 +17,12 @@ C along with the nettle library; see the file COPYING.LIB. If not, write to C the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, C MA 02111-1301, USA. +C NOTE: This code is currently unused. It gives a modest speedup on +C Intel processors, running at roughly two instructions per cycle, and +C a large slowdown on AMD processors, running at only a single +C instruction per cycle. Maybe it can be rewritten to not move data +C back and forth between xmm registers and regular 64-bit registers. + define(, <%rdi>) C 25 64-bit values, 200 bytes. define(, <%r8>) C Avoid clobbering %rsi, for W64.