xz-analysis-mirror/m4
Lasse Collin 77bc5bc6dd 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 00:18:24 +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. 2015-03-31 21:12:30 +03: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-10-24 18:51:36 +03:00
tuklib_integer.m4 Revise tuklib_integer.h and .m4. 2019-12-31 00:18:24 +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