fix noInit to noinit; use evergreen GitHub Actions image versions (#151)
This commit is contained in:
parent
7bb0ccc784
commit
3c238df6cd
|
@ -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
|
||||
|
|
|
@ -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.}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue