summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2015-11-14 14:49:49 -0500
committerErik Schnetter <schnetter@gmail.com>2015-11-14 14:49:49 -0500
commit477f9c85cf111e59a9042f230bb536d0765265fa (patch)
treeabea52d8ac2a9c8fe962f83a361fad68104708d5
parent89853488275b118f6f2ba7724eec30f4d37d67b9 (diff)
downloadvecmathlib-477f9c85cf111e59a9042f230bb536d0765265fa.zip
vecmathlib-477f9c85cf111e59a9042f230bb536d0765265fa.tar.gz
Report AVX2 capabilities in capability string
-rw-r--r--vecmathlib.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/vecmathlib.h b/vecmathlib.h
index 0d72add..5fe2832 100644
--- a/vecmathlib.h
+++ b/vecmathlib.h
@@ -141,7 +141,12 @@ class type_info;
#include "vec_avx_fp16_16.h"
#include "vec_avx_float8.h"
#include "vec_avx_double4.h"
-#define VML_CONFIG_AVX " AVX"
+#if defined __AVX2__
+#define VML_CONFIG_AVX2 " AVX2"
+#else
+#define VML_CONFIG_AVX2
+#endif
+#define VML_CONFIG_AVX " AVX" VML_CONFIG_AVX2
#else
#define VML_CONFIG_AVX
#endif
OpenPOWER on IntegriCloud