diff options
Diffstat (limited to 'src/third_party/zstandard/zstd/lib/common/portability_macros.h')
-rw-r--r-- | src/third_party/zstandard/zstd/lib/common/portability_macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/zstandard/zstd/lib/common/portability_macros.h b/src/third_party/zstandard/zstd/lib/common/portability_macros.h index 627ef9eed4a..2143817f574 100644 --- a/src/third_party/zstandard/zstd/lib/common/portability_macros.h +++ b/src/third_party/zstandard/zstd/lib/common/portability_macros.h @@ -65,6 +65,12 @@ # endif #endif +/* Mark the internal assembly functions as hidden */ +#ifdef __ELF__ +# define ZSTD_HIDE_ASM_FUNCTION(func) .hidden func +#else +# define ZSTD_HIDE_ASM_FUNCTION(func) +#endif /* Enable runtime BMI2 dispatch based on the CPU. * Enabled for clang & gcc >=4.8 on x86 when BMI2 isn't enabled by default. |