liblzma: Add the crc_always_inline macro to crc_simd_body().

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.
This commit is contained in:
Jia Tan 2023-10-18 22:50:25 +08:00
parent a5966c276b
commit 40abd88afc
1 changed files with 1 additions and 1 deletions

View 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)
{