liblzma: Simplify existing cases with lzma_attr_no_sanitize_address.

This commit is contained in:
Lasse Collin 2023-10-20 22:49:48 +03:00
parent 9523c1300d
commit d164ac0e62
1 changed files with 3 additions and 9 deletions

View File

@ -44,9 +44,7 @@
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__) #if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__)
__attribute__((__target__("ssse3,sse4.1,pclmul"))) __attribute__((__target__("ssse3,sse4.1,pclmul")))
#endif #endif
#if lzma_has_attribute(__no_sanitize_address__) crc_attr_no_sanitize_address
__attribute__((__no_sanitize_address__))
#endif
static crc_always_inline void static crc_always_inline void
crc_simd_body(const uint8_t *buf, const size_t size, __m128i *v0, __m128i *v1, crc_simd_body(const uint8_t *buf, const size_t size, __m128i *v0, __m128i *v1,
const __m128i vfold16, const __m128i initial_crc) 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__) #if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__)
__attribute__((__target__("ssse3,sse4.1,pclmul"))) __attribute__((__target__("ssse3,sse4.1,pclmul")))
#endif #endif
#if lzma_has_attribute(__no_sanitize_address__) crc_attr_no_sanitize_address
__attribute__((__no_sanitize_address__))
#endif
extern uint32_t extern uint32_t
lzma_crc32_clmul(const uint8_t *buf, size_t size, uint32_t crc) 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__) #if (defined(__GNUC__) || defined(__clang__)) && !defined(__EDG__)
__attribute__((__target__("ssse3,sse4.1,pclmul"))) __attribute__((__target__("ssse3,sse4.1,pclmul")))
#endif #endif
#if lzma_has_attribute(__no_sanitize_address__) crc_attr_no_sanitize_address
__attribute__((__no_sanitize_address__))
#endif
extern uint64_t extern uint64_t
lzma_crc64_clmul(const uint8_t *buf, size_t size, uint64_t crc) lzma_crc64_clmul(const uint8_t *buf, size_t size, uint64_t crc)
{ {