mirror_zfs/module/zstd/lib/common
Brian Behlendorf 6e4acd7893 zstd: disable intrinsics
Disable the aarch64 NEON SIMD intrinsics for kernel builds.  Safely
using them in the kernel context requires saving/restoring the FPU
registers which is not currently done.

Additionally, remove the aarch64 optimized PREFETCH_L1 and PREFETCH_L2
instruction.  Rely on the more portable compiler built ins.

This lets us remove the problematic workaround in the aarch64_compat.h
header which undefines the __aarch64__ macro.

Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #17904
Closes #17852
2025-11-12 10:57:46 -08:00
..
bitstream.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
compiler.h zstd: disable intrinsics 2025-11-12 10:57:46 -08:00
cpu.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
debug.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
entropy_common.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
error_private.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
error_private.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
fse_decompress.c Cleanup of dead code suggested by Clang Static Analyzer (#14380) 2023-01-17 09:57:12 -08:00
fse.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
huf.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
mem.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
pool.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
pool.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
xxhash.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
xxhash.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_common.c Re-apply a78f19d3 2022-03-01 13:55:51 -08:00
zstd_errors.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_internal.h zstd: disable intrinsics 2025-11-12 10:57:46 -08:00