summarylogtreecommitdiffstats
path: root/f16c_fix.patch
blob: 6cd0b5c5315e1d941400fafad1eaff593281d92e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- upstream/half.hpp	2020-12-22 10:47:45.583725510 +0100
+++ f16c_fix/half.hpp	2020-12-22 10:48:21.917419594 +0100
@@ -266,10 +266,6 @@
 #if HALF_ENABLE_CPP11_HASH
 	#include <functional>
 #endif
-#if HALF_ENABLE_F16C_INTRINSICS
-	#include <immintrin.h>
-#endif
-
 
 #ifndef HALF_ENABLE_F16C_INTRINSICS
 	/// Enable F16C intruction set intrinsics.
@@ -280,6 +276,9 @@
 	/// Unless predefined it will be enabled automatically when the `__F16C__` symbol is defined, which some compilers do on supporting platforms.
 	#define HALF_ENABLE_F16C_INTRINSICS __F16C__
 #endif
+#if HALF_ENABLE_F16C_INTRINSICS
+	#include <immintrin.h>
+#endif
 
 #ifdef HALF_DOXYGEN_ONLY
 /// Type for internal floating-point computations.