Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix noInit to noinit; use evergreen GitHub Actions image versions #151

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.}