mirror_zfs/module/zstd/lib/compress
Alexander Moch a2ac9cd606 Zstd: Integrate v1.5.7 into the ZFS build system
This commit builds on the previous zstd library update and adds the
necessary ZFS integration and build system changes required to make
zstd 1.5.7 compile and function correctly.

Changes:
- Add zstd_preSplit.c (new in 1.5.7) to all build systems.
- Enable x86_64 assembly in userspace (huf_decompress_amd64.S).
- Disable assembly in kernel for RETHUNK/IBT compatibility.
- Disable intrinsics in kernel for EL10 x86_64-v3 baseline.
- Disable tracing in kernel builds for AArch64 compatibility.
- Fix ZSTD_isError symbol renaming with __asm__ directive.
- Rename abs64 to ZSTD_abs64 (FreeBSD kernel conflict).
- Fix bitstream.h attributes (MEM_STATIC -> FORCE_INLINE_TEMPLATE).
- Remove xxhash.c from BSD build (now header-only).
- Update symbol names in zstd_compat_wrapper.h.
- Ignore checkstyle for zstd-in.c.

Kernel assembly disabled for security mitigation compatibility. User
space retains full performance.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Moch <mail@alexmoch.com>
Closes #18089
2026-01-20 13:41:06 -08:00
..
clevels.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
fse_compress.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
hist.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
hist.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
huf_compress.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_internal.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_literals.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_literals.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_sequences.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_sequences.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_superblock.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress_superblock.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_compress.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_cwksp.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_double_fast.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_double_fast.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_fast.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_fast.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_lazy.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_lazy.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_ldm_geartab.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_ldm.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_ldm.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_opt.c Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_opt.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00
zstd_preSplit.c Zstd: Integrate v1.5.7 into the ZFS build system 2026-01-20 13:41:06 -08:00
zstd_preSplit.h Zstd: Update bundled library to v1.5.7 without further adjustments 2026-01-20 13:40:37 -08:00