Add ZSTD_NO_INTRINSICS macro to avoid explicit intrinsics

This commit is contained in:
Nick Terrell committed 2020-09-09 14:35:39 -07:00
1 parent f91ed5c766
commit e975de289c
2 files changed
+9 -7

No files matched your search

+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