]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Remove usage of aligned alloc implementations and instead use calloc. calloc 1911/head
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 6 May 2025 13:28:32 +0000 (15:28 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 6 May 2025 14:10:14 +0000 (16:10 +0200)
commit675b4431cd97b6d81ea9b9342ff13331e70e6bb4
treee4564a4c6a6283d34449c7f8dc560240f5ef795f
parent830995ff7806337179a0ca531b20fc3f6787c0e4
Remove usage of aligned alloc implementations and instead use calloc.
Using calloc has advantages like ensuring memory is zeroed and depending
on OS implementation can improve speed and cache-locality by
pre-zeroing or only zeroing pages that are actually touched.
20 files changed:
CMakeLists.txt
configure
deflate.c
gzlib.c
gzread.c.in
gzwrite.c
test/benchmarks/benchmark_adler32.cc
test/benchmarks/benchmark_adler32_copy.cc
test/benchmarks/benchmark_compare256.cc
test/benchmarks/benchmark_compare256_rle.cc
test/benchmarks/benchmark_compress.cc
test/benchmarks/benchmark_crc32.cc
test/benchmarks/benchmark_slidehash.cc
test/benchmarks/benchmark_uncompress.cc
test/test_crc32.cc
zlib_name_mangling-ng.h.in
zlib_name_mangling.h.in
zutil.c
zutil.h
zutil_p.h [deleted file]