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:
|
include:
|
||||||
- target:
|
- target:
|
||||||
os: linux
|
os: linux
|
||||||
builder: ubuntu-20.04
|
builder: ubuntu-latest
|
||||||
- target:
|
- target:
|
||||||
os: macos
|
os: macos
|
||||||
builder: macos-12
|
builder: macos-latest
|
||||||
- target:
|
- target:
|
||||||
os: windows
|
os: windows
|
||||||
builder: windows-latest
|
builder: windows-latest
|
||||||
|
|
|
@ -168,7 +168,7 @@ func `xor`*(a, b: StInt): StInt =
|
||||||
## `Bitwise xor` of numbers x and y
|
## `Bitwise xor` of numbers x and y
|
||||||
result.impl.bitxor(a.impl, b.impl)
|
result.impl.bitxor(a.impl, b.impl)
|
||||||
|
|
||||||
{.pop.} # End noInit
|
{.pop.} # End noinit
|
||||||
|
|
||||||
{.push raises: [], inline, gcsafe.}
|
{.push raises: [], inline, gcsafe.}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ func addC*(cOut: var Carry, sum: var uint64, a, b: uint64, cIn: Carry) {.inline.
|
||||||
when useIntrinsics:
|
when useIntrinsics:
|
||||||
cOut = addcarry_u64(cIn, a, b, sum)
|
cOut = addcarry_u64(cIn, a, b, sum)
|
||||||
elif useInt128:
|
elif useInt128:
|
||||||
var dblPrec {.noInit.}: uint128
|
var dblPrec {.noinit.}: uint128
|
||||||
{.emit:[dblPrec, " = (unsigned __int128)", a," + (unsigned __int128)", b, " + (unsigned __int128)",cIn,";"].}
|
{.emit:[dblPrec, " = (unsigned __int128)", a," + (unsigned __int128)", b, " + (unsigned __int128)",cIn,";"].}
|
||||||
|
|
||||||
# Don't forget to dereference the var param in C mode
|
# 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:
|
when useIntrinsics:
|
||||||
bOut = subborrow_u64(bIn, a, b, diff)
|
bOut = subborrow_u64(bIn, a, b, diff)
|
||||||
elif useInt128:
|
elif useInt128:
|
||||||
var dblPrec {.noInit.}: uint128
|
var dblPrec {.noinit.}: uint128
|
||||||
{.emit:[dblPrec, " = (unsigned __int128)", a," - (unsigned __int128)", b, " - (unsigned __int128)",bIn,";"].}
|
{.emit:[dblPrec, " = (unsigned __int128)", a," - (unsigned __int128)", b, " - (unsigned __int128)",bIn,";"].}
|
||||||
|
|
||||||
# Don't forget to dereference the var param in C mode
|
# 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
|
## `Bitwise xor` of numbers x and y
|
||||||
result.bitxor(a, b)
|
result.bitxor(a, b)
|
||||||
|
|
||||||
{.pop.} # End noInit
|
{.pop.} # End noinit
|
||||||
|
|
||||||
export
|
export
|
||||||
countOnes,
|
countOnes,
|
||||||
|
|
Loading…
Reference in New Issue