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

This commit is contained in:
tersec 2024-03-13 04:45:06 +00:00 committed by GitHub
parent 7bb0ccc784
commit 3c238df6cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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.}

View File

@ -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
@ -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

View File

@ -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,