Add ZSTD_NO_INTRINSICS macro to avoid explicit intrinsics

This commit is contained in:
Nick Terrell
2020-09-09 14:35:39 -07:00
parent f91ed5c766
commit e975de289c
2 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -35,10 +35,12 @@ extern "C" {
/*=========================================
* Target specific
=========================================*/
#if defined(__BMI__) && defined(__GNUC__)
# include <immintrin.h> /* support for bextr (experimental) */
#elif defined(__ICCARM__)
# include <intrinsics.h>
#ifndef ZSTD_NO_INTRINSICS
# if defined(__BMI__) && defined(__GNUC__)
# include <immintrin.h> /* support for bextr (experimental) */
# elif defined(__ICCARM__)
# include <intrinsics.h>
# endif
#endif
#define STREAM_ACCUMULATOR_MIN_32 25