Skip to content

Commit 5cdbeea

Browse files
committed
Remove TODO regarding unrolling of gen_matrix()
Our performance numbers suggest that the unrolling either already works or is not needed, so remove the corresponding TODO. Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
1 parent 7df044e commit 5cdbeea

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mlkem/indcpa.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,6 @@ void gen_matrix(polyvec *a, const uint8_t seed[MLKEM_SYMBYTES], int transposed)
293293
memcpy(seedxy[j], seed, MLKEM_SYMBYTES);
294294
}
295295

296-
/*
297-
* TODO: All loops in this function should be unrolled for decent
298-
* performance.
299-
* Either add suitable pragmas, or split gen_matrix according to MLKEM_K
300-
* and unroll by hand.
301-
*/
302-
303296
for (i = 0; i < (MLKEM_K * MLKEM_K / KECCAK_WAY) * KECCAK_WAY;
304297
i += KECCAK_WAY)
305298
{

0 commit comments

Comments
 (0)