aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/montgomery64_2e256m189_4limbs/fesub.c
blob: 235e733b4422b329bd95653b9961cd82a37d036c (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
static void fesub(uint64_t out[4], const uint64_t in1[4], const uint64_t in2[4]) {
  { const uint64_t x8 = in1[3];
  { const uint64_t x9 = in1[2];
  { const uint64_t x7 = in1[1];
  { const uint64_t x5 = in1[0];
  { const uint64_t x14 = in2[3];
  { const uint64_t x15 = in2[2];
  { const uint64_t x13 = in2[1];
  { const uint64_t x11 = in2[0];
  { uint64_t x17; uint8_t x18 = _subborrow_u64(0x0, x5, x11, &x17);
  { uint64_t x20; uint8_t x21 = _subborrow_u64(x18, x7, x13, &x20);
  { uint64_t x23; uint8_t x24 = _subborrow_u64(x21, x9, x15, &x23);
  { uint64_t x26; uint8_t x27 = _subborrow_u64(x24, x8, x14, &x26);
  { uint64_t x28 = cmovznz64(x27, 0x0, 0xffffffffffffffffL);
  { uint64_t x29 = (x28 & 0xffffffffffffff43L);
  { uint64_t x31; uint8_t x32 = _addcarryx_u64(0x0, x17, x29, &x31);
  { uint64_t x33 = (x28 & 0xffffffffffffffffL);
  { uint64_t x35; uint8_t x36 = _addcarryx_u64(x32, x20, x33, &x35);
  { uint64_t x37 = (x28 & 0xffffffffffffffffL);
  { uint64_t x39; uint8_t x40 = _addcarryx_u64(x36, x23, x37, &x39);
  { uint64_t x41 = (x28 & 0xffffffffffffffffL);
  { uint64_t x43; uint8_t _ = _addcarryx_u64(x40, x26, x41, &x43);
  out[0] = x31;
  out[1] = x35;
  out[2] = x39;
  out[3] = x43;
  }}}}}}}}}}}}}}}}}}}}}
}