From 90e263a5dca7ea4d73e83b2ee03ecd8e79170531 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Fri, 3 Nov 2017 11:40:42 -0400 Subject: Update display logs and c files --- src/Specific/solinas32_2e448m2e224m1/feadd.c | 51 ++++++++++++++++++++++ .../solinas32_2e448m2e224m1/feaddDisplay.log | 7 +++ src/Specific/solinas32_2e448m2e224m1/fesub.c | 51 ++++++++++++++++++++++ .../solinas32_2e448m2e224m1/fesubDisplay.log | 7 +++ 4 files changed, 116 insertions(+) create mode 100644 src/Specific/solinas32_2e448m2e224m1/feadd.c create mode 100644 src/Specific/solinas32_2e448m2e224m1/feaddDisplay.log create mode 100644 src/Specific/solinas32_2e448m2e224m1/fesub.c create mode 100644 src/Specific/solinas32_2e448m2e224m1/fesubDisplay.log (limited to 'src/Specific/solinas32_2e448m2e224m1') diff --git a/src/Specific/solinas32_2e448m2e224m1/feadd.c b/src/Specific/solinas32_2e448m2e224m1/feadd.c new file mode 100644 index 000000000..18b150e21 --- /dev/null +++ b/src/Specific/solinas32_2e448m2e224m1/feadd.c @@ -0,0 +1,51 @@ +static void feadd(uint32_t out[16], const uint32_t in1[16], const uint32_t in2[16]) { + { const uint32_t x32 = in1[15]; + { const uint32_t x33 = in1[14]; + { const uint32_t x31 = in1[13]; + { const uint32_t x29 = in1[12]; + { const uint32_t x27 = in1[11]; + { const uint32_t x25 = in1[10]; + { const uint32_t x23 = in1[9]; + { const uint32_t x21 = in1[8]; + { const uint32_t x19 = in1[7]; + { const uint32_t x17 = in1[6]; + { const uint32_t x15 = in1[5]; + { const uint32_t x13 = in1[4]; + { const uint32_t x11 = in1[3]; + { const uint32_t x9 = in1[2]; + { const uint32_t x7 = in1[1]; + { const uint32_t x5 = in1[0]; + { const uint32_t x62 = in2[15]; + { const uint32_t x63 = in2[14]; + { const uint32_t x61 = in2[13]; + { const uint32_t x59 = in2[12]; + { const uint32_t x57 = in2[11]; + { const uint32_t x55 = in2[10]; + { const uint32_t x53 = in2[9]; + { const uint32_t x51 = in2[8]; + { const uint32_t x49 = in2[7]; + { const uint32_t x47 = in2[6]; + { const uint32_t x45 = in2[5]; + { const uint32_t x43 = in2[4]; + { const uint32_t x41 = in2[3]; + { const uint32_t x39 = in2[2]; + { const uint32_t x37 = in2[1]; + { const uint32_t x35 = in2[0]; + out[0] = (x5 + x35); + out[1] = (x7 + x37); + out[2] = (x9 + x39); + out[3] = (x11 + x41); + out[4] = (x13 + x43); + out[5] = (x15 + x45); + out[6] = (x17 + x47); + out[7] = (x19 + x49); + out[8] = (x21 + x51); + out[9] = (x23 + x53); + out[10] = (x25 + x55); + out[11] = (x27 + x57); + out[12] = (x29 + x59); + out[13] = (x31 + x61); + out[14] = (x33 + x63); + out[15] = (x32 + x62); + }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} +} diff --git a/src/Specific/solinas32_2e448m2e224m1/feaddDisplay.log b/src/Specific/solinas32_2e448m2e224m1/feaddDisplay.log new file mode 100644 index 000000000..130c31964 --- /dev/null +++ b/src/Specific/solinas32_2e448m2e224m1/feaddDisplay.log @@ -0,0 +1,7 @@ +λ x x0 : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, +Interp-η +(λ var : Syntax.base_type → Type, + λ '(x32, x33, x31, x29, x27, x25, x23, x21, x19, x17, x15, x13, x11, x9, x7, x5, (x62, x63, x61, x59, x57, x55, x53, x51, x49, x47, x45, x43, x41, x39, x37, x35))%core, + ((x32 + x62), (x33 + x63), (x31 + x61), (x29 + x59), (x27 + x57), (x25 + x55), (x23 + x53), (x21 + x51), (x19 + x49), (x17 + x47), (x15 + x45), (x13 + x43), (x11 + x41), (x9 + x39), (x7 + x37), (x5 + x35))) +(x, x0)%core + : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType (uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t) diff --git a/src/Specific/solinas32_2e448m2e224m1/fesub.c b/src/Specific/solinas32_2e448m2e224m1/fesub.c new file mode 100644 index 000000000..0385245b5 --- /dev/null +++ b/src/Specific/solinas32_2e448m2e224m1/fesub.c @@ -0,0 +1,51 @@ +static void fesub(uint32_t out[16], const uint32_t in1[16], const uint32_t in2[16]) { + { const uint32_t x32 = in1[15]; + { const uint32_t x33 = in1[14]; + { const uint32_t x31 = in1[13]; + { const uint32_t x29 = in1[12]; + { const uint32_t x27 = in1[11]; + { const uint32_t x25 = in1[10]; + { const uint32_t x23 = in1[9]; + { const uint32_t x21 = in1[8]; + { const uint32_t x19 = in1[7]; + { const uint32_t x17 = in1[6]; + { const uint32_t x15 = in1[5]; + { const uint32_t x13 = in1[4]; + { const uint32_t x11 = in1[3]; + { const uint32_t x9 = in1[2]; + { const uint32_t x7 = in1[1]; + { const uint32_t x5 = in1[0]; + { const uint32_t x62 = in2[15]; + { const uint32_t x63 = in2[14]; + { const uint32_t x61 = in2[13]; + { const uint32_t x59 = in2[12]; + { const uint32_t x57 = in2[11]; + { const uint32_t x55 = in2[10]; + { const uint32_t x53 = in2[9]; + { const uint32_t x51 = in2[8]; + { const uint32_t x49 = in2[7]; + { const uint32_t x47 = in2[6]; + { const uint32_t x45 = in2[5]; + { const uint32_t x43 = in2[4]; + { const uint32_t x41 = in2[3]; + { const uint32_t x39 = in2[2]; + { const uint32_t x37 = in2[1]; + { const uint32_t x35 = in2[0]; + out[0] = ((0x1ffffffe + x5) - x35); + out[1] = ((0x1ffffffe + x7) - x37); + out[2] = ((0x1ffffffe + x9) - x39); + out[3] = ((0x1ffffffe + x11) - x41); + out[4] = ((0x1ffffffe + x13) - x43); + out[5] = ((0x1ffffffe + x15) - x45); + out[6] = ((0x1ffffffe + x17) - x47); + out[7] = ((0x1ffffffe + x19) - x49); + out[8] = ((Const 536870908 + x21) - x51); + out[9] = ((0x1ffffffe + x23) - x53); + out[10] = ((0x1ffffffe + x25) - x55); + out[11] = ((0x1ffffffe + x27) - x57); + out[12] = ((0x1ffffffe + x29) - x59); + out[13] = ((0x1ffffffe + x31) - x61); + out[14] = ((0x1ffffffe + x33) - x63); + out[15] = ((0x1ffffffe + x32) - x62); + }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} +} diff --git a/src/Specific/solinas32_2e448m2e224m1/fesubDisplay.log b/src/Specific/solinas32_2e448m2e224m1/fesubDisplay.log new file mode 100644 index 000000000..906f9306f --- /dev/null +++ b/src/Specific/solinas32_2e448m2e224m1/fesubDisplay.log @@ -0,0 +1,7 @@ +λ x x0 : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, +Interp-η +(λ var : Syntax.base_type → Type, + λ '(x32, x33, x31, x29, x27, x25, x23, x21, x19, x17, x15, x13, x11, x9, x7, x5, (x62, x63, x61, x59, x57, x55, x53, x51, x49, x47, x45, x43, x41, x39, x37, x35))%core, + (((0x1ffffffe + x32) - x62), ((0x1ffffffe + x33) - x63), ((0x1ffffffe + x31) - x61), ((0x1ffffffe + x29) - x59), ((0x1ffffffe + x27) - x57), ((0x1ffffffe + x25) - x55), ((0x1ffffffe + x23) - x53), ((Const 536870908 + x21) - x51), ((0x1ffffffe + x19) - x49), ((0x1ffffffe + x17) - x47), ((0x1ffffffe + x15) - x45), ((0x1ffffffe + x13) - x43), ((0x1ffffffe + x11) - x41), ((0x1ffffffe + x9) - x39), ((0x1ffffffe + x7) - x37), ((0x1ffffffe + x5) - x35))) +(x, x0)%core + : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType (uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t) -- cgit v1.2.3