Skip to content

Commit

Permalink
Spill to MMX
Browse files Browse the repository at this point in the history
  • Loading branch information
sarranz committed Oct 20, 2023
1 parent 57c9023 commit de8f0cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/common/keccak/common/fips202_ref_DIRTY.jinc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from Jade require "common/keccak/keccak1600/amd64/ref1/keccak1600.jinc"
#[returnaddress="stack"]
fn _shake256_128_33(reg ptr u8[128] out, reg const ptr u8[33] in, reg u64 ms) -> stack u8[128], #msf reg u64
{
stack ptr u8[128] s_out;
#mmx reg ptr u8[128] s_out;
stack u64[25] _state;
reg ptr u64[25] state;
reg u8 c;
Expand Down Expand Up @@ -80,7 +80,7 @@ fn _shake256_192_33(reg ptr u8[192] out, reg const ptr u8[33] in) -> stack u8[19
#[returnaddress="stack"]
fn _sha3_512_32(reg ptr u8[64] out, reg const ptr u8[32] in, reg u64 ms) -> stack u8[64], #msf reg u64
{
stack ptr u8[64] s_out;
#mmx reg ptr u8[64] s_out;
stack u64[25] _state;
reg ptr u64[25] state;
reg u8 c;
Expand Down Expand Up @@ -153,7 +153,7 @@ fn _sha3_256(reg ptr u8[32] out, reg u64 in inlen, reg u64 ms) -> reg ptr u8[32]
{
stack u64[25] _state;
reg ptr u64[25] state;
stack ptr u8[32] s_out;
#mmx reg ptr u8[32] s_out;
stack u64 s_in s_ilen s_r8;
reg u64 ilen r8 t64;
reg u8 t8;
Expand Down
2 changes: 1 addition & 1 deletion src/crypto_kem/kyber/kyber768/amd64/ref/poly.jinc
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ fn _poly_getnoise(reg ptr u16[KYBER_N] rp, reg ptr u8[KYBER_SYMBYTES] seed, reg
reg u64 i j;
inline int k;

stack ptr u16[KYBER_N] srp;
#mmx reg ptr u16[KYBER_N] srp;

srp = rp;

Expand Down

0 comments on commit de8f0cb

Please sign in to comment.