Skip to content

Commit

Permalink
sm4: ppc64x, missing macro #249
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Sep 12, 2024
1 parent 8c9a628 commit 420b9e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sm4/asm_ppc64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ GLOBL ·rcon(SB), RODATA, $192
LXVW4X (RA+RB), VT \
VPERM VT, VT, ESPERMW, VT

#define PPC64X_STXVW4X(VS, RA, RB) \
VPERM VS, VS, ESPERMW, VS \
STXVW4X VS, (RA+RB)

#else
#define PPC64X_LXVW4X(RA,RB,VT) LXVW4X (RA+RB), VT
#define PPC64X_STXVW4X(VS, RA, RB) STXVW4X VS, (RA+RB)
#endif // defined(GOARCH_ppc64le)

// r = s <<< n
Expand Down

0 comments on commit 420b9e9

Please sign in to comment.