Skip to content

Commit a9d9d31

Browse files
committed
Use _lowWord in implementation of isEven
1 parent 3316332 commit a9d9d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/nnnn-binaryinteger-iseven-isodd-ismultiple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Add two computed properties, `isEven` and `isOdd`, and a function `isMultiple` t
109109
///
110110
/// An integer is even if it is a multiple of two.
111111
public var isEven: Bool {
112-
return isMultiple(of: 2)
112+
return _lowWord % 2 == 0
113113
}
114114

115115
@_transparent

0 commit comments

Comments
 (0)