Debian Codegraph @

output-tests/Crypto.Fancy.Montgomery256.Prod.MontRed256.expected

raw
1 = fun lo hi y t1 t2 scratch RegPInv : register =>
2 MUL128LL y lo RegPInv;
3 MUL128UL t1 lo RegPInv;
4 ADD 128 y y t1;
5 MUL128LU t1 lo RegPInv;
6 ADD 128 y y t1;
7 MUL128LL t1 y RegMod;
8 MUL128UU t2 y RegMod;
9 MUL128UL scratch y RegMod;
10 ADD 128 t1 t1 scratch;
11 ADDC (-128) t2 t2 scratch;
12 MUL128LU scratch y RegMod;
13 ADD 128 t1 t1 scratch;
14 ADDC (-128) t2 t2 scratch;
15 ADD 0 lo lo t1;
16 ADDC 0 hi hi t2;
17 SELC y RegMod RegZero;
18 SUB 0 lo hi y;
19 ADDM lo lo RegZero RegMod;
20 Ret lo
21 : register -> register -> register -> register -> register -> register -> register -> expr