r202871 - The wmmintrin.h header includes two different sub-headers: one for AES support

Roman Divacky rdivacky at freebsd.org
Tue Mar 4 10:26:12 PST 2014


Author: rdivacky
Date: Tue Mar  4 12:26:12 2014
New Revision: 202871

URL: http://llvm.org/viewvc/llvm-project?rev=202871&view=rev
Log:
The wmmintrin.h header includes two different sub-headers: one for AES support
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!

Modified:
    cfe/trunk/lib/Headers/immintrin.h

Modified: cfe/trunk/lib/Headers/immintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/immintrin.h?rev=202871&r1=202870&r2=202871&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/immintrin.h (original)
+++ cfe/trunk/lib/Headers/immintrin.h Tue Mar  4 12:26:12 2014
@@ -48,7 +48,7 @@
 #include <smmintrin.h>
 #endif
 
-#if defined (__AES__)
+#if defined (__AES__) || defined (__PCLMUL__)
 #include <wmmintrin.h>
 #endif
 





More information about the cfe-commits mailing list