[git] GCRYPT - branch, LIBGCRYPT-1.8-BRANCH, updated. libgcrypt-1.8.2-11-g22db623
by Jussi Kivilinna
cvs at cvs.gnupg.org
Tue Apr 17 20:13:19 CEST 2018
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, LIBGCRYPT-1.8-BRANCH has been updated
via 22db6237de00cafb85c0112073b55d0d750e6b03 (commit)
from bbf88f0e9d481486ceca079e2611e84db8d039c7 (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 22db6237de00cafb85c0112073b55d0d750e6b03
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Sat Jan 6 20:26:52 2018 +0200
Make BMI2 inline assembly check more robust
* configure.ac (gcry_cv_gcc_inline_asm_bmi2): New assembly test.
--
Use actual assembly snippets from keccak.c to check that compiler
has proper support for used BMI2 instructions.
GnuPG-bug-id: 3408
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
(cherry picked from commit 135250e3060e79be698d4f36a819aa8a880789f8)
diff --git a/configure.ac b/configure.ac
index f20aa4f..5396725 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1402,8 +1402,15 @@ AC_CACHE_CHECK([whether GCC inline assembler supports BMI2 instructions],
else
gcry_cv_gcc_inline_asm_bmi2=no
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
- [[void a(void) {
- __asm__("rorxl \$23, %%eax, %%edx\\n\\t":::"memory");
+ [[unsigned int a(unsigned int x, unsigned int y) {
+ unsigned int tmp1, tmp2;
+ asm ("rorxl %2, %1, %0"
+ : "=r" (tmp1)
+ : "rm0" (x), "J" (32 - ((23) & 31)));
+ asm ("andnl %2, %1, %0"
+ : "=r" (tmp2)
+ : "r0" (x), "rm" (y));
+ return tmp1 + tmp2;
}]])],
[gcry_cv_gcc_inline_asm_bmi2=yes])
fi])
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
More information about the Gnupg-commits
mailing list