diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-10-20 22:49:48 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-01-11 14:29:42 +0200 |
commit | d164ac0e62904126f7920c25f9a2875c8cd28b97 (patch) | |
tree | 04c6fa55639291fd0b29d839b786407262c19581 /src | |
parent | liblzma: #define crc_attr_no_sanitize_address in crc_common.h. (diff) | |
download | xz-d164ac0e62904126f7920c25f9a2875c8cd28b97.tar.xz |
liblzma: Simplify existing cases with lzma_attr_no_sanitize_address.
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/check/crc_clmul.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/liblzma/check/crc_clmul.c b/src/liblzma/check/crc_clmul.c index 8db82940..b855e443 100644 --- a/src/liblzma/check/crc_clmul.c +++ b/src/liblzma/check/crc_clmul.c @@ -44,9 +44,7 @@ #if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__) __attribute__((__target__("ssse3,sse4.1,pclmul"))) #endif -#if lzma_has_attribute(__no_sanitize_address__) -__attribute__((__no_sanitize_address__)) -#endif +crc_attr_no_sanitize_address static crc_always_inline void crc_simd_body(const uint8_t *buf, const size_t size, __m128i *v0, __m128i *v1, const __m128i vfold16, const __m128i initial_crc) @@ -226,9 +224,7 @@ calc_hi(uint64_t p, uint64_t a, int n) #if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__) __attribute__((__target__("ssse3,sse4.1,pclmul"))) #endif -#if lzma_has_attribute(__no_sanitize_address__) -__attribute__((__no_sanitize_address__)) -#endif +crc_attr_no_sanitize_address extern uint32_t lzma_crc32_clmul(const uint8_t *buf, size_t size, uint32_t crc) { @@ -319,9 +315,7 @@ calc_hi(uint64_t poly, uint64_t a) #if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__) __attribute__((__target__("ssse3,sse4.1,pclmul"))) #endif -#if lzma_has_attribute(__no_sanitize_address__) -__attribute__((__no_sanitize_address__)) -#endif +crc_attr_no_sanitize_address extern uint64_t lzma_crc64_clmul(const uint8_t *buf, size_t size, uint64_t crc) { |