Don't include <immintrin.h> if it is not needed
Some environments provide <wmmintrin.h> but not <immintrin.h>
This commit is contained in:
parent
fa4e4bf174
commit
9c12da0362
@ -15,14 +15,15 @@
|
|||||||
#include "runtime.h"
|
#include "runtime.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(HAVE_WMMINTRIN_H) || \
|
#if (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)) || \
|
||||||
(defined(_MSC_VER) && _MSC_VER >= 1600 && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)))
|
(defined(_MSC_VER) && _MSC_VER >= 1600 && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)))
|
||||||
|
|
||||||
#pragma GCC target("ssse3")
|
#pragma GCC target("ssse3")
|
||||||
#pragma GCC target("aes")
|
#pragma GCC target("aes")
|
||||||
#pragma GCC target("pclmul")
|
#pragma GCC target("pclmul")
|
||||||
|
|
||||||
#include <immintrin.h>
|
#include <tmmintrin.h>
|
||||||
|
#include <wmmintrin.h>
|
||||||
|
|
||||||
#ifndef ENOSYS
|
#ifndef ENOSYS
|
||||||
# define ENOSYS ENXIO
|
# define ENOSYS ENXIO
|
||||||
|
Loading…
Reference in New Issue
Block a user