]> git.ipfire.org Git - thirdparty/zstd.git/commit
Use proper unaligned access attributes
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Mon, 29 Nov 2021 02:54:24 +0000 (21:54 -0500)
committerNick Terrell <nickrterrell@gmail.com>
Thu, 15 Dec 2022 00:00:37 +0000 (16:00 -0800)
commita78c91ae59b9487fc32224b67c4a854dc3720367
tree5a218de9975f5a92e7c5893dd75e8d44a76750bd
parentfbff7827faba30df7c49992cb39dc00ce36c6a06
Use proper unaligned access attributes

Instead of using packed attribute hack, just use aligned attribute. It
improves code generation on armv6 and armv7, and slightly improves code
generation on aarch64. GCC generates identical code to regular aligned
access on ARMv6 for all versions between 4.5 and trunk, except GCC 5
which is buggy and generates the same (bad) code as packed access:
https://gcc.godbolt.org/z/hq37rz7sb
contrib/linux-kernel/Makefile
lib/common/mem.h
lib/legacy/zstd_v01.c
lib/legacy/zstd_v02.c
lib/legacy/zstd_v03.c
lib/legacy/zstd_v04.c
lib/legacy/zstd_v05.c
lib/legacy/zstd_v06.c
lib/legacy/zstd_v07.c
tests/fuzz/fuzz.h