[git] GCRYPT - branch, master, updated. post-nuke-of-trailing-ws-10-gc873f36

by Werner Koch cvs at cvs.gnupg.org
Thu Feb 17 11:26:36 CET 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  c873f36d73712466fa37d0ff5efc39553ef41f3d (commit)
      from  364799200d1fa8bfa159b6941cb74156bbfa7ec1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c873f36d73712466fa37d0ff5efc39553ef41f3d
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Feb 17 11:00:25 2011 +0100

    Fix AES-NI detection.
    
    Really a kind of bown paper bag bug: Use AND and not SUB for bit
    testing.  I should have known that, given that 30 years ago I wrote
    almost everything in asm.

diff --git a/src/ChangeLog b/src/ChangeLog
index 4f3a4e3..6859042 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-17  Werner Koch  <wk at g10code.com>
+
+	* hwfeatures.c (detect_ia32_gnuc): Fix AES-NI detection.  Use AND
+	instead of SUB for bit testing.
+
 2011-02-16  Werner Koch  <wk at g10code.com>
 
 	* gcrypt.h.in (GCRYCTL_DISABLE_HWF): New.
diff --git a/src/hwfeatures.c b/src/hwfeatures.c
index 2b3bb2c..c356798 100644
--- a/src/hwfeatures.c
+++ b/src/hwfeatures.c
@@ -149,7 +149,7 @@ detect_ia32_gnuc (void)
          "movl $1, %%eax\n\t"           /* Get CPU info and feature flags.  */
          "cpuid\n"
          "popl %%ebx\n\t"	        /* Restore GOT register. */
-         "cmpl $0x02000000, %%ecx\n\t"  /* Test bit 25.  */
+         "testl $0x02000000, %%ecx\n\t" /* Test bit 25.  */
          "jz .Lno_aes%=\n\t"            /* No AES support.  */
          "orl $256, %0\n"               /* Set our HWF_INTEL_AES bit.  */
 

-----------------------------------------------------------------------

Summary of changes:
 src/ChangeLog    |    5 +++++
 src/hwfeatures.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org




More information about the Gnupg-commits mailing list