Skip to content

Commit

Permalink
fix noInit to noinit; use evergreen GitHub Actions image versions (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Mar 13, 2024
1 parent 7bb0ccc commit 3c238df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
include:
- target:
os: linux
builder: ubuntu-20.04
builder: ubuntu-latest
- target:
os: macos
builder: macos-12
builder: macos-latest
- target:
os: windows
builder: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion stint/intops.nim
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func `xor`*(a, b: StInt): StInt =
## `Bitwise xor` of numbers x and y
result.impl.bitxor(a.impl, b.impl)

{.pop.} # End noInit
{.pop.} # End noinit

{.push raises: [], inline, gcsafe.}

Expand Down
4 changes: 2 additions & 2 deletions stint/private/primitives/addcarry_subborrow.nim
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func addC*(cOut: var Carry, sum: var uint64, a, b: uint64, cIn: Carry) {.inline.
when useIntrinsics:
cOut = addcarry_u64(cIn, a, b, sum)
elif useInt128:
var dblPrec {.noInit.}: uint128
var dblPrec {.noinit.}: uint128
{.emit:[dblPrec, " = (unsigned __int128)", a," + (unsigned __int128)", b, " + (unsigned __int128)",cIn,";"].}

# Don't forget to dereference the var param in C mode
Expand All @@ -170,7 +170,7 @@ func subB*(bOut: var Borrow, diff: var uint64, a, b: uint64, bIn: Borrow) {.inli
when useIntrinsics:
bOut = subborrow_u64(bIn, a, b, diff)
elif useInt128:
var dblPrec {.noInit.}: uint128
var dblPrec {.noinit.}: uint128
{.emit:[dblPrec, " = (unsigned __int128)", a," - (unsigned __int128)", b, " - (unsigned __int128)",bIn,";"].}

# Don't forget to dereference the var param in C mode
Expand Down
4 changes: 2 additions & 2 deletions stint/uintops.nim
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func `xor`*(a, b: StUint): StUint =
## `Bitwise xor` of numbers x and y
result.bitxor(a, b)

{.pop.} # End noInit
{.pop.} # End noinit

export
countOnes,
Expand Down Expand Up @@ -270,4 +270,4 @@ func divmod*(x, y: StUint): tuple[quot, rem: StUint] =
## Division and remainder operations for multi-precision unsigned uint
divRem(result.quot.limbs, result.rem.limbs, x.limbs, y.limbs)

{.pop.}
{.pop.}

0 comments on commit 3c238df

Please sign in to comment.