commit | 29afef03486d461c23f57150ac5436684bff7811 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Sat Jun 01 18:41:16 2019 +0300 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Tue Dec 31 22:19:12 2019 +0200 |
tree | f32d23fe20372ec1aaf9affd587181edb3139f08 | |
parent | 596ed3de4485a4b1d83b5fe506ae9d0a172139b4 [diff] |
tuklib_integer: Improve unaligned memory access. Now memcpy() or GNU C packed structs for unaligned access instead of type punning. See the comment in this commit for details. Avoiding type punning with unaligned access is needed to silence gcc -fsanitize=undefined. New functions: unaliged_readXXne and unaligned_writeXXne where XX is 16, 32, or 64.