Fix spam on OSX CI - copy without substraction issue in squareMont without ADX

This commit is contained in:
Mamy Ratsimbazafy 2022-02-17 15:14:12 +01:00
parent 8b5d5089cb
commit f2d51a3b6e
No known key found for this signature in database
GPG Key ID: 6227262F49BE273A

View File

@ -138,6 +138,7 @@ macro redc2xMont_gen*[N: static int](
# Second part - Final substraction
# ---------------------------------------------
if not(spareBits >= 2 and skipFinalSub):
ctx.mov rdx, r_temp
let r = rdx.asArrayAddr(len = N)
@ -155,7 +156,7 @@ macro redc2xMont_gen*[N: static int](
if spareBits >= 2 and skipFinalSub:
for i in 0 ..< N:
ctx.mov r[i], t[i]
ctx.mov r_temp[i], u[i]
elif spareBits >= 1:
ctx.finalSubNoCarryImpl(r, u, M, t)
else: