Skip to content

Commit

Permalink
sm9/bn256: arm64 fix mul issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Jul 24, 2023
1 parent 4985c6d commit f6ad6f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sm9/bn256/gfp2_g1_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ TEXT gfpMulInternal(SB),NOSPLIT,$0

UMULH const3, hlp0, hlp0
ADC $0, acc7

ADDS t1, acc0, acc0
ADCS y0, acc1, acc1
ADCS acc3, acc2, acc2
ADC $0, hlp0, acc3

// Add bits [511:256] of the mul result
ADDS acc4, acc0, acc0
ADCS acc5, acc1, acc1
Expand Down

0 comments on commit f6ad6f3

Please sign in to comment.