]> granicus.if.org Git - clang/commitdiff
The wmmintrin.h header includes two different sub-headers: one for AES support
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 4 Mar 2014 18:26:12 +0000 (18:26 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 4 Mar 2014 18:26:12 +0000 (18:26 +0000)
and one for PCLMUL support.  The current immintrin.h header only includes
wmmintrin.h if AES support is enabled.  It should include it if either AES or
PCLMUL is enabled (GCC's version of immintrin.h does this).

Patch by John Baldwin!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202871 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/immintrin.h

index 15d6e05f979ad84fd6b76b9e3a93b51f8f934fdf..df4bea8c950e0487c4720ab758e854ca3732a904 100644 (file)
@@ -48,7 +48,7 @@
 #include <smmintrin.h>
 #endif
 
-#if defined (__AES__)
+#if defined (__AES__) || defined (__PCLMUL__)
 #include <wmmintrin.h>
 #endif