Skip to content

Commit

Permalink
Export isNegative and isZero
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmry committed Jun 19, 2023
1 parent ee4e3dc commit f0ddda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bigints.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type
# * if `a` is non-zero: `a.limbs[a.limbs.high] != 0`
# * if `a` is zero: `a.limbs.len <= 1`
limbs: seq[uint32]
isNegative: bool
isNegative*: bool


# forward declarations
Expand Down Expand Up @@ -78,7 +78,7 @@ const
zero = initBigInt(0)
one = initBigInt(1)

func isZero(a: BigInt): bool {.inline.} =
func isZero*(a: BigInt): bool {.inline.} =
a.limbs.len == 0 or (a.limbs.len == 1 and a.limbs[0] == 0)

func abs*(a: BigInt): BigInt =
Expand Down

0 comments on commit f0ddda5

Please sign in to comment.