Use macros instead of magic numbers

This commit is contained in:
Frank Denis
2017-09-13 23:42:21 +02:00
parent 1c0677b09f
commit 6866b3d555
2 changed files with 2 additions and 2 deletions
@@ -148,7 +148,7 @@ fill_segment_avx2(const argon2_instance_t *instance,
uint64_t pseudo_rand, ref_index, ref_lane;
uint32_t prev_offset, curr_offset;
uint32_t starting_index, i;
__m256i state[32];
__m256i state[ARGON2_HWORDS_IN_BLOCK];
int data_independent_addressing = 1;
/* Pseudo-random values that determine the reference block position */
@@ -147,7 +147,7 @@ fill_segment_ssse3(const argon2_instance_t *instance,
uint64_t pseudo_rand, ref_index, ref_lane;
uint32_t prev_offset, curr_offset;
uint32_t starting_index, i;
__m128i state[64];
__m128i state[ARGON2_OWORDS_IN_BLOCK];
int data_independent_addressing = 1;
/* Pseudo-random values that determine the reference block position */