diff --git a/.gitignore b/.gitignore index ae20fde7..7228ec13 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ __pycache__/ bin/ bin-host/ compile_commands.json +.vscode diff --git a/crypto_kem/kyber768/m4fspeed/ntt.c b/crypto_kem/kyber768/m4fspeed/ntt.c index 813cdc20..99e5422f 100644 --- a/crypto_kem/kyber768/m4fspeed/ntt.c +++ b/crypto_kem/kyber768/m4fspeed/ntt.c @@ -14,7 +14,7 @@ const int16_t zetas[64] = 3221, 3021, 996, 991, 958, 1869, 1522, 1628 }; -const int16_t zetas_asm[128] = { +const int16_t __attribute__((aligned (4))) zetas_asm[128] = { // 7 & 6 & 5 & 4 layers 0, 2571, 2970, 1812, 1493, 1422, 287, 202, 3158, 622, 1577, 182, 962, 2127, 1855, 1468, // 1st loop of 3 & 2 & 1 layers @@ -35,7 +35,7 @@ const int16_t zetas_asm[128] = { 3124, 448, 2264, 3221, 3021, 996, 991, 1758, 677, 2054, 958, 1869, 1522, 1628 }; -const int16_t zetas_inv_CT_asm[256] = +const int16_t __attribute__((aligned (4))) zetas_inv_CT_asm[256] = { // pad + LAYER 7+6+5+4 0, 2285, 2285, 758, 2285, 1517, 758, 359, 2285, 3127, 1517, 1907, 758, 3042, 359, 1836,