Check for compiler SSE4.1 support in PCLMUL CRC code.
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>
Mon, 9 May 2016 02:04:59 +0000 (04:04 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 16:18:13 +0000 (18:18 +0200)
commitdc76313308c184c92eb78452b503405b90fc7ebd
treeeabe923b5b49971ffd0c08cf49e9cb4ff5d6d911
parentbd39eb9fba47dc8500c83769a679cc8b683d6c6e
Check for compiler SSE4.1 support in PCLMUL CRC code.

* cipher/crc-intel-pclmul.c: Build PCLMUL CRC implementation only if
  compiler supports PCLMUL *and* SSE4.1
* cipher/crc.c: Ditto
* configure.ac (sse41support, gcry_cv_gcc_inline_asm_sse41): New.
--
Fixes build with the native gcc on OpenBSD/amd64, which supports PCLMUL
but not SSE4.1.

Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org>
cipher/crc-intel-pclmul.c
cipher/crc.c
configure.ac