]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Create crc_always_inline macro.
authorJia Tan <jiat0218@gmail.com>
Wed, 18 Oct 2023 14:48:19 +0000 (22:48 +0800)
committerJia Tan <jiat0218@gmail.com>
Wed, 18 Oct 2023 15:54:41 +0000 (23:54 +0800)
commita5966c276bd6fa975f0389f8a8dc61393de750b0
tree5ef6d837c6ae7db5d7f187cf44d296db3128037f
parent96b663f67c0e738a99ba8f35d9f4ced9add74544
liblzma: Create crc_always_inline macro.

This macro must be used instead of the inline keyword. On MSVC, it is
a replacement for __forceinline which is an MSVC specific keyword that
should not be used with inline (it will issue a warning if it is).

It does not use a build system check to determine if
__attribute__((__always_inline__)) since all compilers that can use
CLMUL extensions (except the special case for MSVC) should support this
attribute. If this assumption is incorrect then it will result in a bug
report instead of silently producing slow code.
src/liblzma/check/crc_common.h