This commit is contained in:
Clyybber
2020-05-18 18:43:06 +02:00
committed by GitHub
parent 2627e1e945
commit ac65986aae

View File

@@ -97,7 +97,7 @@ proc hiXorLo(a, b: uint64): uint64 {.inline.} =
when Hash.sizeof < 8:
result = hiXorLoFallback64(a, b)
elif defined(gcc) or defined(llvm_gcc) or defined(clang):
{.emit: """__uint128_t r = a; r *= b; `result` = (r >> 64) ^ r;""".}
{.emit: """__uint128_t r = `a`; r *= `b`; `result` = (r >> 64) ^ r;""".}
elif defined(windows) and not defined(tcc):
proc umul128(a, b: uint64, c: ptr uint64): uint64 {.importc: "_umul128", header: "intrin.h".}
var b = b