reexport isEven and friends

This commit is contained in:
Jacek Sieka 2019-07-22 10:13:19 +02:00
parent 8bf328b4f0
commit d41be5ccb0
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ func `==`*(x, y: SomeBigInteger): bool {.inline.} =
x.data == y.data
export `<`, `<=`, `==` # Address Generic Instantiation too nested: https://github.com/status-im/nim-stint/pull/66#issuecomment-427557655
# TODO these exports are needed for the SomeInteger versions - move to stew?
export isZero, isOdd, isEven, isNegative
func isZero*(x: SomeBigInteger): bool {.inline.} =
## Returns true if input is zero
## false otherwise