mirror of https://git.tukaani.org/xz.git
4ffc60f323
The __builtin_bswapXX from GCC and Clang are preferred when they are available. This can allow compilers to emit the x86 MOVBE instruction instead of doing a load + byteswap as two instructions (which would happen if the byteswapping is done in inline asm). bswap16, bswap32, and bswap64 exist in system headers on *BSDs and Darwin. #defining bswap16 on NetBSD results in a warning about macro redefinition. It's safest to avoid this namespace conflict completely. No OS supported by tuklib_integer.h uses byteswapXX names and a web search doesn't immediately find any obvious danger of namespace conflicts. So let's try these still-pretty-short names for the macros. Thanks to Sam James for pointing out the compiler warning on NetBSD 10.0. |
||
---|---|---|
.. | ||
common_w32res.rc | ||
mythread.h | ||
sysdefs.h | ||
tuklib_common.h | ||
tuklib_config.h | ||
tuklib_cpucores.c | ||
tuklib_cpucores.h | ||
tuklib_exit.c | ||
tuklib_exit.h | ||
tuklib_gettext.h | ||
tuklib_integer.h | ||
tuklib_mbstr.h | ||
tuklib_mbstr_fw.c | ||
tuklib_mbstr_width.c | ||
tuklib_open_stdxxx.c | ||
tuklib_open_stdxxx.h | ||
tuklib_physmem.c | ||
tuklib_physmem.h | ||
tuklib_progname.c | ||
tuklib_progname.h |