mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-27 12:17:12 +09:00
Use macros instead of magic numbers
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user