Browse Source

change x86-64 non-BMI2 asm constraints for gcc compat; thanks Olivier Cheron

master
Mike Hamburg 8 years ago
parent
commit
b8f6e3d007
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/include/arch_x86_64/arch_intrinsics.h

+ 3
- 3
src/include/arch_x86_64/arch_intrinsics.h View File

@@ -190,9 +190,9 @@ static __inline__ void mac_rr(__uint128_t *acc, uint64_t a, const uint64_t b) {
("mulq %[b]; "
"addq %%rax, %[lo]; "
"adcq %%rdx, %[hi]; "
: [lo]"+r"(lo), [hi]"+r"(hi)
: [b]"r"(b), "a"(a)
: "rax", "rdx", "cc");
: [lo]"+r"(lo), [hi]"+r"(hi), "+a"(a)
: [b]"r"(b)
: "rdx", "cc");
#endif
*acc = (((__uint128_t)(hi))<<64) | lo;


Loading…
Cancel
Save