1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
xz-archive/m4
Lasse Collin 850620468b Revise tuklib_integer.h and .m4.
Add a configure option --enable-unsafe-type-punning to get the
old non-conforming memory access methods. It can be useful with
old compilers or in some other less typical situations but
shouldn't normally be used.

Omit the packed struct trick for unaligned access. While it's
best in some cases, this is simpler. If the memcpy trick doesn't
work, one can request unsafe type punning from configure.

Because CRC32/CRC64 code needs fast aligned reads, if no very
safe way to do it is found, type punning is used as a fallback.
This sucks but since it currently works in practice, it seems to
be the least bad option. It's never needed with GCC >= 4.7 or
Clang >= 3.6 since these support __builtin_assume_aligned and
thus fast aligned access can be done with the memcpy trick.

Other things:
  - Support GCC/Clang __builtin_bswapXX
  - Cleaner bswap fallback macros
  - Minor cleanups
2019-12-31 22:34:10 +02:00
..
.gitignore Update .gitignore files. 2014-10-29 21:28:25 +02:00
ax_check_capsicum.m4 Fix bugs and otherwise improve ax_check_capsicum.m4. 2016-12-26 20:37:40 +02:00
ax_pthread.m4 Build: Update m4/ax_pthread.m4 from Autoconf Archive. 2014-11-17 19:11:49 +02:00
getopt.m4 Fix the Autoconf test for getopt_long replacement. 2009-03-01 08:58:41 +02:00
posix-shell.m4 Major update to the xzgrep and other scripts based on 2009-07-05 22:25:17 +03:00
tuklib_common.m4 Various changes. 2009-09-19 09:47:30 +03:00
tuklib_cpucores.m4 tuklib_cpucores: Add support for sched_getaffinity(). 2016-12-26 17:24:09 +02:00
tuklib_integer.m4 Revise tuklib_integer.h and .m4. 2019-12-31 22:34:10 +02:00
tuklib_mbstr.m4 xz: Multiple fixes. 2010-09-10 10:30:33 +03:00
tuklib_physmem.m4 Fix the detection of installed RAM on QNX. 2015-03-29 22:13:48 +03:00
tuklib_progname.m4 Various changes. 2009-09-19 09:47:30 +03:00