mirror of
https://github.com/codex-storage/constantine.git
synced 2025-01-27 11:04:51 +00:00
Fix spam on OSX CI - copy without substraction issue in squareMont without ADX
This commit is contained in:
parent
8b5d5089cb
commit
f2d51a3b6e
@ -138,7 +138,8 @@ macro redc2xMont_gen*[N: static int](
|
|||||||
# Second part - Final substraction
|
# Second part - Final substraction
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
|
|
||||||
ctx.mov rdx, r_temp
|
if not(spareBits >= 2 and skipFinalSub):
|
||||||
|
ctx.mov rdx, r_temp
|
||||||
let r = rdx.asArrayAddr(len = N)
|
let r = rdx.asArrayAddr(len = N)
|
||||||
|
|
||||||
# This does a[i+n] += hi
|
# This does a[i+n] += hi
|
||||||
@ -155,7 +156,7 @@ macro redc2xMont_gen*[N: static int](
|
|||||||
|
|
||||||
if spareBits >= 2 and skipFinalSub:
|
if spareBits >= 2 and skipFinalSub:
|
||||||
for i in 0 ..< N:
|
for i in 0 ..< N:
|
||||||
ctx.mov r[i], t[i]
|
ctx.mov r_temp[i], u[i]
|
||||||
elif spareBits >= 1:
|
elif spareBits >= 1:
|
||||||
ctx.finalSubNoCarryImpl(r, u, M, t)
|
ctx.finalSubNoCarryImpl(r, u, M, t)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user