sm4: ppc64x try VPERMXOR

This commit is contained in:
Sun Yimin 2024-11-08 08:09:45 +08:00 committed by GitHub
parent f7263ee31e
commit 4e5e3d0128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,11 +84,7 @@
// - y: 128 bits temp register // - y: 128 bits temp register
// - z: 128 bits temp register // - z: 128 bits temp register
#define AFFINE_TRANSFORM(L, H, V_FOUR, x, y, z) \ #define AFFINE_TRANSFORM(L, H, V_FOUR, x, y, z) \
VAND NIBBLE_MASK, x, z; \ VPERMXOR L, H, x, x
VPERM L, L, z, y; \
VSRB x, V_FOUR, z; \
VPERM H, H, z, x; \
VXOR y, x, x
// Affine Transform // Affine Transform
// parameters: // parameters: