mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
sm4: ppc64x try VPERMXOR
This commit is contained in:
parent
f7263ee31e
commit
4e5e3d0128
@ -84,11 +84,7 @@
|
||||
// - y: 128 bits temp register
|
||||
// - z: 128 bits temp register
|
||||
#define AFFINE_TRANSFORM(L, H, V_FOUR, x, y, z) \
|
||||
VAND NIBBLE_MASK, x, z; \
|
||||
VPERM L, L, z, y; \
|
||||
VSRB x, V_FOUR, z; \
|
||||
VPERM H, H, z, x; \
|
||||
VXOR y, x, x
|
||||
VPERMXOR L, H, x, x
|
||||
|
||||
// Affine Transform
|
||||
// parameters:
|
||||
|
Loading…
x
Reference in New Issue
Block a user