Skip to content

Commit 115b135

Browse files
Merge #1763: bench: Use ALIGNMENT macro instead of hardcoded value
153eea2 bench: Use `ALIGNMENT` macro instead of hardcoded value (Hennadii Stepanov) Pull request description: This PR brings consistency with the rest of the code and appears more correct. ACKs for top commit: real-or-random: utACK 153eea2 Tree-SHA512: 0fc61a390205ef29b99cfce9cb0d365930b7a93aa0f2aaaa00bfd9e0fc34ac928a3fe13b096f394b7d35e95e9ede7c47ecb054de2846be1e1aa33a84d14942cf
2 parents 7a2fff8 + 153eea2 commit 115b135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bench_ecmult.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ int main(int argc, char **argv) {
334334
}
335335

336336
data.ctx = secp256k1_context_create(SECP256K1_CONTEXT_NONE);
337-
scratch_size = secp256k1_strauss_scratch_size(POINTS) + STRAUSS_SCRATCH_OBJECTS*16;
337+
scratch_size = secp256k1_strauss_scratch_size(POINTS) + STRAUSS_SCRATCH_OBJECTS*ALIGNMENT;
338338
if (!have_flag(argc, argv, "simple")) {
339339
data.scratch = secp256k1_scratch_space_create(data.ctx, scratch_size);
340340
} else {

0 commit comments

Comments
 (0)