]> git.ipfire.org Git - thirdparty/zstd.git/commit
benchfn dependencies reduced to only timefn
authorYann Collet <cyan@fb.com>
Wed, 10 Apr 2019 19:37:03 +0000 (12:37 -0700)
committerYann Collet <cyan@fb.com>
Wed, 10 Apr 2019 19:37:03 +0000 (12:37 -0700)
commit59a7116cc2fb0118a0c4a238326b0549425b994e
treebb0ec589e4609e8cb485fd196d5f1a1056873064
parent094c000904448a1953840c605007524b15eb3a86
benchfn dependencies reduced to only timefn

benchfn used to rely on mem.h, and util,
which in turn relied on platform.h.
Using benchfn outside of zstd required to bring all these dependencies.

Now, dependency is reduced to timefn only.
This required to create a separate timefn from util,
and rewrite benchfn and timefn to no longer need mem.h.

Separating timefn from util has a wide effect accross the code base,
as usage of time functions is widespread.
A lot of build scripts had to be updated to also include timefn.
21 files changed:
contrib/adaptive-compression/Makefile
contrib/adaptive-compression/adapt.c
contrib/largeNbDicts/Makefile
doc/zstd_manual.html
programs/Makefile
programs/benchfn.c
programs/benchzstd.c
programs/dibio.c
programs/fileio.c
programs/timefn.c [new file with mode: 0644]
programs/timefn.h [new file with mode: 0644]
programs/util.c
programs/util.h
tests/Makefile
tests/decodecorpus.c
tests/fullbench.c
tests/fuzzer.c
tests/paramgrill.c
tests/zstreamtest.c
zlibWrapper/Makefile
zlibWrapper/examples/zwrapbench.c