summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-07 11:08:40 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-07 11:08:40 +0100
commit19ba206d46d8558bc3af6ab14f7a770a94df57b9 (patch)
tree19b46c95c9119c909677df21620675bca3e79e30
parentcfd769e56deea99b21f49eebe460f205f4f6525d (diff)
downloadnettle-ppc-chacha-core.tar.gz
ppc: Comment instructions for chacha byte swapping.ppc-chacha-core
-rw-r--r--powerpc64/p7/chacha-core-internal.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/powerpc64/p7/chacha-core-internal.asm b/powerpc64/p7/chacha-core-internal.asm
index 80f0b3c1..6eb1066f 100644
--- a/powerpc64/p7/chacha-core-internal.asm
+++ b/powerpc64/p7/chacha-core-internal.asm
@@ -105,9 +105,9 @@ PROLOGUE(_nettle_chacha_core)
vspltisw ROT7, 7
IF_BE(`
li r9, 0
- lvsl LE_MASK, r9, r9
- vspltisb LE_TEMP, 0x03
- vxor LE_MASK, LE_MASK, LE_TEMP
+ lvsl LE_MASK, r9, r9 C 00 01 02 03 ... 0c 0d 0e 0f
+ vspltisb LE_TEMP, 0x03 C 03 03 03 03 ... 03 03 03 03
+ vxor LE_MASK, LE_MASK, LE_TEMP C 03 02 01 00 ... 0f 0e 0d 0c
')
lxvw4x VSR(X0), 0, SRC