mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 04:06:18 +08:00
zuc: ppc64x, fix compile issue #255
This commit is contained in:
parent
0760bce984
commit
f11b2781e7
@ -321,7 +321,8 @@ TEXT ·genKeywordAsm(SB),NOSPLIT,$0
|
|||||||
XOR W, W \
|
XOR W, W \
|
||||||
LFSR_UPDT(idx, addr, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
LFSR_UPDT(idx, addr, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
||||||
|
|
||||||
#define ONEROUND_REV32LE(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4) \
|
#ifdef GOARCH_ppc64le
|
||||||
|
#define ONEROUND_REV32(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4) \
|
||||||
BITS_REORG(idx, addr, W, tmpR1, tmpR2, tmpR3) \
|
BITS_REORG(idx, addr, W, tmpR1, tmpR2, tmpR3) \
|
||||||
NONLIN_FUN(W, tmpR1, tmpR2, tmpR3) \
|
NONLIN_FUN(W, tmpR1, tmpR2, tmpR3) \
|
||||||
XOR BRC_X3, W \
|
XOR BRC_X3, W \
|
||||||
@ -329,11 +330,9 @@ TEXT ·genKeywordAsm(SB),NOSPLIT,$0
|
|||||||
MOVWBR W, (tmpR1)(dst) \
|
MOVWBR W, (tmpR1)(dst) \
|
||||||
XOR W, W \
|
XOR W, W \
|
||||||
LFSR_UPDT(idx, addr, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
LFSR_UPDT(idx, addr, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
||||||
|
|
||||||
#ifdef GOARCH_ppc64le
|
|
||||||
#define ONEROUND_REV32(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4) ONEROUND_REV32LE(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
|
||||||
#else
|
#else
|
||||||
#define ONEROUND_REV32(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4) ONEROUND(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
#define ONEROUND_REV32(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4) \
|
||||||
|
ONEROUND(idx, addr, dst, W, tmpR1, tmpR2, tmpR3, tmpR4)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// func genKeyStreamAsm(keyStream []uint32, pState *zucState32)
|
// func genKeyStreamAsm(keyStream []uint32, pState *zucState32)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user