Add files via upload

This commit is contained in:
Niadb
2020-07-28 02:52:15 -06:00
committed by GitHub
parent 01261bc8b6
commit 493fd40dca
3 changed files with 33 additions and 4 deletions
+13
View File
@@ -183,4 +183,17 @@
# pragma warning(disable : 4324) /* disable: C4324: padded structure */
#endif
/*Like DYNAMIC_BMI2 but for compile time determination of BMI2 support*/
#ifndef STATIC_BMI2
# if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_I86))
# ifdef __AVX2__ //MSVC does not have a BMI2 specific flag, but every CPU that supports AVX2 also supports BMI2
# define STATIC_BMI2 1
# endif
# endif
#endif
#ifndef STATIC_BMI2
#define STATIC_BMI2 0
#endif
#endif /* ZSTD_COMPILER_H */