~mht/merge-asm

9aba9014fc33c9e3fa7f8695ffbfa3138d8279da — Martin Hafskjold Thoresen 8 months ago 107f35b
Rename iinc
1 files changed, 7 insertions(+), 7 deletions(-)

M main.c
M main.c => main.c +7 -7
@@ 221,7 221,7 @@ void asm_nb_rev(uint64_t *xs, size_t xmax, uint64_t *ys, size_t ymax,
  uint64_t yj = yse[j];

  int64_t minxy;
  int64_t iinc;
  int64_t t;
  int64_t one = 1;
  int64_t u;



@@ 229,12 229,12 @@ void asm_nb_rev(uint64_t *xs, size_t xmax, uint64_t *ys, size_t ymax,
      "cmp   %[xi], %[yj];"
      "cmovl %[minxy], %[xi];"
      "mov qword ptr [%[zse]+8*%[k]], %[minxy];"
      "mov %[iinc], 0;"
      "cmovl %[iinc], %[one];"
      "add %[i], %[iinc];"
      "mov %[t], 0;"
      "cmovl %[t], %[one];"
      "add %[i], %[t];"
      "mov %[xi], qword ptr [%[xse]+8*%[i]];"
      "xor %[iinc], 1;"
      "add %[j], %[iinc];"
      "xor %[t], 1;"
      "add %[j], %[t];"
      "mov %[yj], qword ptr [%[yse]+8*%[j]];"
      "add %[k], 1;"
      "mov %[u], %[i];"


@@ 242,7 242,7 @@ void asm_nb_rev(uint64_t *xs, size_t xmax, uint64_t *ys, size_t ymax,
      "test %[u], %[k];"
      "jnz 1b;"
      : [minxy] "=&r"(minxy), [xi] "+&r"(xi), [yj] "+&r"(yj),
        [iinc] "=&r"(iinc), [i] "+&r"(i), [j] "+&r"(j), [k] "+&r"(k),
        [t] "=&r"(t), [i] "+&r"(i), [j] "+&r"(j), [k] "+&r"(k),
        [u] "=&r"(u), [zse] "+&r"(zse)
      : [xse] "r"(xse), [yse] "r"(yse), [one] "r"(one)
      : "memory");