parent
2627e1e945
commit
ac65986aae
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue