aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/solinas32_2e165m25_8limbs/fesquare.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Specific/solinas32_2e165m25_8limbs/fesquare.c')
-rw-r--r--src/Specific/solinas32_2e165m25_8limbs/fesquare.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/Specific/solinas32_2e165m25_8limbs/fesquare.c b/src/Specific/solinas32_2e165m25_8limbs/fesquare.c
new file mode 100644
index 000000000..5bae4d373
--- /dev/null
+++ b/src/Specific/solinas32_2e165m25_8limbs/fesquare.c
@@ -0,0 +1,56 @@
+static void fesquare(uint32_t out[8], const uint32_t in1[8]) {
+ { const uint32_t x13 = in1[7];
+ { const uint32_t x14 = in1[6];
+ { const uint32_t x12 = in1[5];
+ { const uint32_t x10 = in1[4];
+ { const uint32_t x8 = in1[3];
+ { const uint32_t x6 = in1[2];
+ { const uint32_t x4 = in1[1];
+ { const uint32_t x2 = in1[0];
+ { uint64_t x15 = (((uint64_t)x2 * x13) + (((uint64_t)x4 * x14) + ((0x2 * ((uint64_t)x6 * x12)) + (((uint64_t)x8 * x10) + (((uint64_t)x10 * x8) + ((0x2 * ((uint64_t)x12 * x6)) + (((uint64_t)x14 * x4) + ((uint64_t)x13 * x2))))))));
+ { uint64_t x16 = ((((uint64_t)x2 * x14) + ((0x2 * ((uint64_t)x4 * x12)) + ((0x2 * ((uint64_t)x6 * x10)) + (((uint64_t)x8 * x8) + ((0x2 * ((uint64_t)x10 * x6)) + ((0x2 * ((uint64_t)x12 * x4)) + ((uint64_t)x14 * x2))))))) + (0x19 * (0x2 * ((uint64_t)x13 * x13))));
+ { uint64_t x17 = ((((uint64_t)x2 * x12) + (((uint64_t)x4 * x10) + (((uint64_t)x6 * x8) + (((uint64_t)x8 * x6) + (((uint64_t)x10 * x4) + ((uint64_t)x12 * x2)))))) + (0x19 * (((uint64_t)x14 * x13) + ((uint64_t)x13 * x14))));
+ { uint64_t x18 = ((((uint64_t)x2 * x10) + (((uint64_t)x4 * x8) + ((0x2 * ((uint64_t)x6 * x6)) + (((uint64_t)x8 * x4) + ((uint64_t)x10 * x2))))) + (0x19 * ((0x2 * ((uint64_t)x12 * x13)) + (((uint64_t)x14 * x14) + (0x2 * ((uint64_t)x13 * x12))))));
+ { uint64_t x19 = ((((uint64_t)x2 * x8) + ((0x2 * ((uint64_t)x4 * x6)) + ((0x2 * ((uint64_t)x6 * x4)) + ((uint64_t)x8 * x2)))) + (0x19 * ((0x2 * ((uint64_t)x10 * x13)) + ((0x2 * ((uint64_t)x12 * x14)) + ((0x2 * ((uint64_t)x14 * x12)) + (0x2 * ((uint64_t)x13 * x10)))))));
+ { uint64_t x20 = ((((uint64_t)x2 * x6) + (((uint64_t)x4 * x4) + ((uint64_t)x6 * x2))) + (0x19 * (((uint64_t)x8 * x13) + (((uint64_t)x10 * x14) + ((0x2 * ((uint64_t)x12 * x12)) + (((uint64_t)x14 * x10) + ((uint64_t)x13 * x8)))))));
+ { uint64_t x21 = ((((uint64_t)x2 * x4) + ((uint64_t)x4 * x2)) + (0x19 * ((0x2 * ((uint64_t)x6 * x13)) + (((uint64_t)x8 * x14) + ((0x2 * ((uint64_t)x10 * x12)) + ((0x2 * ((uint64_t)x12 * x10)) + (((uint64_t)x14 * x8) + (0x2 * ((uint64_t)x13 * x6)))))))));
+ { uint64_t x22 = (((uint64_t)x2 * x2) + (0x19 * ((0x2 * ((uint64_t)x4 * x13)) + ((0x2 * ((uint64_t)x6 * x14)) + ((0x2 * ((uint64_t)x8 * x12)) + ((0x2 * ((uint64_t)x10 * x10)) + ((0x2 * ((uint64_t)x12 * x8)) + ((0x2 * ((uint64_t)x14 * x6)) + (0x2 * ((uint64_t)x13 * x4))))))))));
+ { uint64_t x23 = (x22 >> 0x15);
+ { uint32_t x24 = ((uint32_t)x22 & 0x1fffff);
+ { uint64_t x25 = (x23 + x21);
+ { uint32_t x26 = (uint32_t) (x25 >> 0x15);
+ { uint32_t x27 = ((uint32_t)x25 & 0x1fffff);
+ { uint64_t x28 = (x26 + x20);
+ { uint32_t x29 = (uint32_t) (x28 >> 0x14);
+ { uint32_t x30 = ((uint32_t)x28 & 0xfffff);
+ { uint64_t x31 = (x29 + x19);
+ { uint32_t x32 = (uint32_t) (x31 >> 0x15);
+ { uint32_t x33 = ((uint32_t)x31 & 0x1fffff);
+ { uint64_t x34 = (x32 + x18);
+ { uint32_t x35 = (uint32_t) (x34 >> 0x15);
+ { uint32_t x36 = ((uint32_t)x34 & 0x1fffff);
+ { uint64_t x37 = (x35 + x17);
+ { uint32_t x38 = (uint32_t) (x37 >> 0x14);
+ { uint32_t x39 = ((uint32_t)x37 & 0xfffff);
+ { uint64_t x40 = (x38 + x16);
+ { uint32_t x41 = (uint32_t) (x40 >> 0x15);
+ { uint32_t x42 = ((uint32_t)x40 & 0x1fffff);
+ { uint64_t x43 = (x41 + x15);
+ { uint32_t x44 = (uint32_t) (x43 >> 0x14);
+ { uint32_t x45 = ((uint32_t)x43 & 0xfffff);
+ { uint64_t x46 = (x24 + ((uint64_t)0x19 * x44));
+ { uint32_t x47 = (uint32_t) (x46 >> 0x15);
+ { uint32_t x48 = ((uint32_t)x46 & 0x1fffff);
+ { uint32_t x49 = (x47 + x27);
+ { uint32_t x50 = (x49 >> 0x15);
+ { uint32_t x51 = (x49 & 0x1fffff);
+ out[0] = x48;
+ out[1] = x51;
+ out[2] = (x50 + x30);
+ out[3] = x33;
+ out[4] = x36;
+ out[5] = x39;
+ out[6] = x42;
+ out[7] = x45;
+ }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
+}