Skip to content

Commit

Permalink
sm9/bn256: fix arm64 complete double issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Jul 25, 2023
1 parent 1ecdb1a commit db92a6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sm9/bn256/gfp2_g1_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ TEXT ·curvePointDoubleComplete(SB),NOSPLIT,$168-16
STx (tmp1)
LDy (tmp0)
CALL gfpSubInternal(SB) // t0 := t0 - t2
STx (tmp0)
LDy (y3t)
CALL gfpMulInternal(SB) // Y3 := t0 * Y3
LDx (x3t)
Expand All @@ -751,8 +752,8 @@ TEXT ·curvePointDoubleComplete(SB),NOSPLIT,$168-16
gfpMulBy2Inline // X3 := X3 + X3
STx (x2in) // Store X3
// Store Y3
LDx (y3t)
STx (y2in)
LDx (y3t)
STx (y2in)

RET

Expand Down

0 comments on commit db92a6f

Please sign in to comment.