]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Add the crc_always_inline macro to crc_simd_body().
authorJia Tan <jiat0218@gmail.com>
Wed, 18 Oct 2023 14:50:25 +0000 (22:50 +0800)
committerJia Tan <jiat0218@gmail.com>
Wed, 18 Oct 2023 15:54:41 +0000 (23:54 +0800)
Forcing this to be inline has a significant speed improvement at the
cost of a few repeated instructions. The compilers tested on did not
inline this function since it is large and is used twice in the same
translation unit.

src/liblzma/check/crc_clmul.c

index f53fcc929b4aeb6127eba8d3cd9ffb190495277e..6ebb12328d6dd204ae20553011977415c1aca84d 100644 (file)
@@ -64,7 +64,7 @@ __attribute__((__target__("ssse3,sse4.1,pclmul")))
 #if lzma_has_attribute(__no_sanitize_address__)
 __attribute__((__no_sanitize_address__))
 #endif
-static inline void
+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)
 {