aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/solinas32_2e206m5_8limbs/femul.c
blob: 05e57170736193ba8ebbd43d17de6c71bff192f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
static void femul(uint32_t out[8], const uint32_t in1[8], const uint32_t in2[8]) {
  { const uint32_t x16 = 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 x30 = in2[7];
  { const uint32_t x31 = in2[6];
  { const uint32_t x29 = in2[5];
  { const uint32_t x27 = in2[4];
  { const uint32_t x25 = in2[3];
  { const uint32_t x23 = in2[2];
  { const uint32_t x21 = in2[1];
  { const uint32_t x19 = in2[0];
  { uint64_t x32 = (((uint64_t)x5 * x30) + (((uint64_t)x7 * x31) + (((uint64_t)x9 * x29) + (((uint64_t)x11 * x27) + (((uint64_t)x13 * x25) + (((uint64_t)x15 * x23) + (((uint64_t)x17 * x21) + ((uint64_t)x16 * x19))))))));
  { uint64_t x33 = ((((uint64_t)x5 * x31) + (((uint64_t)x7 * x29) + (((uint64_t)x9 * x27) + ((0x2 * ((uint64_t)x11 * x25)) + (((uint64_t)x13 * x23) + (((uint64_t)x15 * x21) + ((uint64_t)x17 * x19))))))) + (0x5 * (0x2 * ((uint64_t)x16 * x30))));
  { uint64_t x34 = ((((uint64_t)x5 * x29) + (((uint64_t)x7 * x27) + ((0x2 * ((uint64_t)x9 * x25)) + ((0x2 * ((uint64_t)x11 * x23)) + (((uint64_t)x13 * x21) + ((uint64_t)x15 * x19)))))) + (0x5 * ((0x2 * ((uint64_t)x17 * x30)) + (0x2 * ((uint64_t)x16 * x31)))));
  { uint64_t x35 = ((((uint64_t)x5 * x27) + ((0x2 * ((uint64_t)x7 * x25)) + ((0x2 * ((uint64_t)x9 * x23)) + ((0x2 * ((uint64_t)x11 * x21)) + ((uint64_t)x13 * x19))))) + (0x5 * ((0x2 * ((uint64_t)x15 * x30)) + ((0x2 * ((uint64_t)x17 * x31)) + (0x2 * ((uint64_t)x16 * x29))))));
  { uint64_t x36 = ((((uint64_t)x5 * x25) + (((uint64_t)x7 * x23) + (((uint64_t)x9 * x21) + ((uint64_t)x11 * x19)))) + (0x5 * (((uint64_t)x13 * x30) + (((uint64_t)x15 * x31) + (((uint64_t)x17 * x29) + ((uint64_t)x16 * x27))))));
  { uint64_t x37 = ((((uint64_t)x5 * x23) + (((uint64_t)x7 * x21) + ((uint64_t)x9 * x19))) + (0x5 * ((0x2 * ((uint64_t)x11 * x30)) + (((uint64_t)x13 * x31) + (((uint64_t)x15 * x29) + (((uint64_t)x17 * x27) + (0x2 * ((uint64_t)x16 * x25))))))));
  { uint64_t x38 = ((((uint64_t)x5 * x21) + ((uint64_t)x7 * x19)) + (0x5 * ((0x2 * ((uint64_t)x9 * x30)) + ((0x2 * ((uint64_t)x11 * x31)) + (((uint64_t)x13 * x29) + (((uint64_t)x15 * x27) + ((0x2 * ((uint64_t)x17 * x25)) + (0x2 * ((uint64_t)x16 * x23)))))))));
  { uint64_t x39 = (((uint64_t)x5 * x19) + (0x5 * ((0x2 * ((uint64_t)x7 * x30)) + ((0x2 * ((uint64_t)x9 * x31)) + ((0x2 * ((uint64_t)x11 * x29)) + (((uint64_t)x13 * x27) + ((0x2 * ((uint64_t)x15 * x25)) + ((0x2 * ((uint64_t)x17 * x23)) + (0x2 * ((uint64_t)x16 * x21))))))))));
  { uint64_t x40 = (x39 >> 0x1a);
  { uint32_t x41 = ((uint32_t)x39 & 0x3ffffff);
  { uint64_t x42 = (x40 + x38);
  { uint64_t x43 = (x42 >> 0x1a);
  { uint32_t x44 = ((uint32_t)x42 & 0x3ffffff);
  { uint64_t x45 = (x43 + x37);
  { uint64_t x46 = (x45 >> 0x1a);
  { uint32_t x47 = ((uint32_t)x45 & 0x3ffffff);
  { uint64_t x48 = (x46 + x36);
  { uint64_t x49 = (x48 >> 0x19);
  { uint32_t x50 = ((uint32_t)x48 & 0x1ffffff);
  { uint64_t x51 = (x49 + x35);
  { uint64_t x52 = (x51 >> 0x1a);
  { uint32_t x53 = ((uint32_t)x51 & 0x3ffffff);
  { uint64_t x54 = (x52 + x34);
  { uint64_t x55 = (x54 >> 0x1a);
  { uint32_t x56 = ((uint32_t)x54 & 0x3ffffff);
  { uint64_t x57 = (x55 + x33);
  { uint64_t x58 = (x57 >> 0x1a);
  { uint32_t x59 = ((uint32_t)x57 & 0x3ffffff);
  { uint64_t x60 = (x58 + x32);
  { uint64_t x61 = (x60 >> 0x19);
  { uint32_t x62 = ((uint32_t)x60 & 0x1ffffff);
  { uint64_t x63 = (x41 + (0x5 * x61));
  { uint32_t x64 = (uint32_t) (x63 >> 0x1a);
  { uint32_t x65 = ((uint32_t)x63 & 0x3ffffff);
  { uint32_t x66 = (x64 + x44);
  { uint32_t x67 = (x66 >> 0x1a);
  { uint32_t x68 = (x66 & 0x3ffffff);
  out[0] = x65;
  out[1] = x68;
  out[2] = (x67 + x47);
  out[3] = x50;
  out[4] = x53;
  out[5] = x56;
  out[6] = x59;
  out[7] = x62;
  }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}