@@ -4,10 +4,10 @@ func nimNotEqual(x, y: UInt128): bool {.inline.} =
4
4
# Using a unique proc for notequal, generates assembly code with one
5
5
# instruction unless using Nim's template. Tested: amd64
6
6
# (x.hi != y.hi) or (x.lo != y.lo)
7
- ((x.lo xor y.lo) or (x.hi xor y.hi)) > 0 # Generates assembly code
8
- # practically the same as CUInt128.
9
- # It has one less instruction.
10
- # Tested: amd64
7
+ ((x.lo xor y.lo) or (x.hi xor y.hi)) > 0 'u64 # Generates assembly code
8
+ # practically the same as CUInt128.
9
+ # It has one less instruction.
10
+ # Tested: amd64
11
11
12
12
func cNotEqual(x, y: UInt128): bool {.inline, used.} =
13
13
let
@@ -20,10 +20,12 @@ func nimNotEqual(x, y: Int128): bool {.inline.} =
20
20
# Using a unique proc for notequal, generates assembly code with one
21
21
# instruction unless using Nim's template. Tested: amd64
22
22
# (x.hi != y.hi) or (x.lo != y.lo)
23
- ((x.lo xor y.lo) or uint64 (x.hi xor y.hi)) > 0 # Generates assembly code
24
- # practically the same as
25
- # CInt128. It has one less
26
- # instruction. Tested: amd64
23
+ ((x.lo xor y.lo) or cast [uint64 ](x.hi xor y.hi)) > 0 'u64 # Generates assembly
24
+ # code practically
25
+ # the same as
26
+ # CInt128. It has one
27
+ # less instruction.
28
+ # Tested: amd64
27
29
28
30
func cNotEqual(x, y: Int128): bool {.inline, used.} =
29
31
let
0 commit comments