kdf-sm3: fix arm64 compile error

This commit is contained in:
Sun Yimin 2024-05-21 10:10:23 +08:00 committed by GitHub
parent ab2bc3d819
commit a276af8f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,16 +35,16 @@
VZIP1 RTMP1.D2, RTMP0.D2, t0.D2 \ VZIP1 RTMP1.D2, RTMP0.D2, t0.D2 \
VZIP2 RTMP1.D2, RTMP0.D2, t1.D2 \ VZIP2 RTMP1.D2, RTMP0.D2, t1.D2 \
VZIP1 RTMP3.D2, RTMP2.D2, t2.D2 \ VZIP1 RTMP3.D2, RTMP2.D2, t2.D2 \
VZIP2 RTMP3.D2, RTMP2.D2, t3.D2 VZIP2 RTMP3.D2, RTMP2.D2, t3.D2 \
// d = s <<< n // d = s <<< n
#define PROLD(s, d, n) \ #define PROLD(s, d, n) \
VSHL $(n), s.S4, d.S4 VSHL $(n), s.S4, d.S4 \
VSRI $(32-n), s.S4, d.S4 VSRI $(32-n), s.S4, d.S4 \
#define loadWordByIndex(W, i) \ #define loadWordByIndex(W, i) \
ADD $(16*i), wordStart, R20 ADD $(16*i), wordStart, R20 \
VLD1 (R20), [W.S4] VLD1 (R20), [W.S4] \
#define prepare4Words \ #define prepare4Words \
VLD1.P 16(srcPtr1), [V12.B16] \ VLD1.P 16(srcPtr1), [V12.B16] \