summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2020-02-12 06:19:08 -0800
committerChris Mason <clm@fb.com>2020-02-12 06:19:08 -0800
commit7011f12b89d17a3191d1d11e3cc39929438bcd9d (patch)
tree360979d993450066b7dd61ab4b2c4c77a4d573f4
parent88e08956e328749f7d8c93fdcac62a1221f66f88 (diff)
downloadsimoop-7011f12b89d17a3191d1d11e3cc39929438bcd9d.tar.gz
simoop: make -I/--ignorecrcs skip generating the crcs
Some CPUs can't keep up, make -I skip it. Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r--simoop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/simoop.c b/simoop.c
index 22f5735..5523f78 100644
--- a/simoop.c
+++ b/simoop.c
@@ -226,6 +226,9 @@ static uint64_t __calc_crc(void *xxhash_state,
{
int ret;
+ if (ignore_crcs)
+ return 0;
+
ret = XXH32_resetState(xxhash_state, verify_header->rand_seed);
if (ret) {
fprintf(stderr, "error %d during XXH32_resetState\n", ret);