From 75ec63285d45f876d3e2cf8fb30131a900978926 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 14 Oct 2025 13:07:47 +0800 Subject: [PATCH] internal/sm2ec: loong64 fix p256Sub --- internal/sm2ec/p256_asm_loong64.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/sm2ec/p256_asm_loong64.s b/internal/sm2ec/p256_asm_loong64.s index 5f0218a..e0eb593 100644 --- a/internal/sm2ec/p256_asm_loong64.s +++ b/internal/sm2ec/p256_asm_loong64.s @@ -1288,8 +1288,8 @@ TEXT ·p256SelectAffine(SB),NOSPLIT,$0 RET /* ---------------------------------------*/ -// func p256Mul(res, in1, in2 *p256Element) -TEXT ·p256Mul(SB),NOSPLIT,$0 +// func p256Sub(res, in1, in2 *p256Element) +TEXT ·p256Sub(SB),NOSPLIT,$0 MOVV res+0(FP), res_ptr MOVV in1+8(FP), x_ptr MOVV in2+16(FP), y_ptr @@ -1303,7 +1303,7 @@ TEXT ·p256Mul(SB),NOSPLIT,$0 MOVV (8*2)(y_ptr), x2 MOVV (8*3)(y_ptr), x3 - CALL sm2P256MulInternal<>(SB) + CALL sm2P256Subinternal<>(SB) MOVV x0, (8*0)(res_ptr) MOVV x1, (8*1)(res_ptr)