Skip to content

Commit 153eea2

Browse files
committed
bench: Use ALIGNMENT macro instead of hardcoded value
1 parent 7a2fff8 commit 153eea2

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)