From c7e0b2aa64464bf3b12c720dac076fe6a8c33833 Mon Sep 17 00:00:00 2001 From: unkernet Date: Thu, 31 Aug 2017 21:42:40 +0300 Subject: [PATCH] Fix build without EXACT_COUNT --- crypto1_bs_crack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto1_bs_crack.c b/crypto1_bs_crack.c index 90aba63..176b50f 100644 --- a/crypto1_bs_crack.c +++ b/crypto1_bs_crack.c @@ -136,10 +136,10 @@ inline uint64_t crack_states_bitsliced(uint32_t **task){ } } +#ifdef EXACT_COUNT // Fix a "1000000% bug". Looks like here is a problem with OS X gcc size_t current_bucket_size = bucket_size[block_idx] > MAX_BITSLICES ? MAX_BITSLICES : bucket_size[block_idx]; -#ifdef EXACT_COUNT bucket_states_tested += current_bucket_size; #ifdef ONLINE_COUNT __atomic_fetch_add(&total_states_tested, current_bucket_size, __ATOMIC_RELAXED);