Skip to content

Commit a3a3e11

Browse files
committed
remove unneeded VERIFY_SETUP uses in ECMULT_CONST_TABLE_GET_GE macro
As the fields r->x and r->y are set immediately after (three lines below), there is no need to clear them.
1 parent a0fb68a commit a3a3e11

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ecmult_const_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ static void secp256k1_ecmult_const_odd_multiples_table_globalz(secp256k1_ge *pre
8787
secp256k1_fe neg_y; \
8888
VERIFY_CHECK((n) < (1U << ECMULT_CONST_GROUP_SIZE)); \
8989
VERIFY_CHECK(index < (1U << (ECMULT_CONST_GROUP_SIZE - 1))); \
90-
VERIFY_SETUP(secp256k1_fe_clear(&(r)->x)); \
91-
VERIFY_SETUP(secp256k1_fe_clear(&(r)->y)); \
9290
/* Unconditionally set r->x = (pre)[m].x. r->y = (pre)[m].y. because it's either the correct one
9391
* or will get replaced in the later iterations, this is needed to make sure `r` is initialized. */ \
9492
(r)->x = (pre)[m].x; \

0 commit comments

Comments
 (0)