mirror of
https://github.com/emmansun/gmsm.git
synced 2025-10-15 15:50:46 +08:00
internal/sm2ec: loong64 fix p256Sub
This commit is contained in:
parent
5629216e36
commit
75ec63285d
@ -1288,8 +1288,8 @@ TEXT ·p256SelectAffine(SB),NOSPLIT,$0
|
|||||||
RET
|
RET
|
||||||
|
|
||||||
/* ---------------------------------------*/
|
/* ---------------------------------------*/
|
||||||
// func p256Mul(res, in1, in2 *p256Element)
|
// func p256Sub(res, in1, in2 *p256Element)
|
||||||
TEXT ·p256Mul(SB),NOSPLIT,$0
|
TEXT ·p256Sub(SB),NOSPLIT,$0
|
||||||
MOVV res+0(FP), res_ptr
|
MOVV res+0(FP), res_ptr
|
||||||
MOVV in1+8(FP), x_ptr
|
MOVV in1+8(FP), x_ptr
|
||||||
MOVV in2+16(FP), y_ptr
|
MOVV in2+16(FP), y_ptr
|
||||||
@ -1303,7 +1303,7 @@ TEXT ·p256Mul(SB),NOSPLIT,$0
|
|||||||
MOVV (8*2)(y_ptr), x2
|
MOVV (8*2)(y_ptr), x2
|
||||||
MOVV (8*3)(y_ptr), x3
|
MOVV (8*3)(y_ptr), x3
|
||||||
|
|
||||||
CALL sm2P256MulInternal<>(SB)
|
CALL sm2P256Subinternal<>(SB)
|
||||||
|
|
||||||
MOVV x0, (8*0)(res_ptr)
|
MOVV x0, (8*0)(res_ptr)
|
||||||
MOVV x1, (8*1)(res_ptr)
|
MOVV x1, (8*1)(res_ptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user