From 7f97d57236c8407a163a4e9f43a65c0dd691a057 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 4 Apr 2013 15:54:08 +0200 Subject: [PATCH] dest4-sparcv9.pl: add clarification comment. --- crypto/des/asm/dest4-sparcv9.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crypto/des/asm/dest4-sparcv9.pl b/crypto/des/asm/dest4-sparcv9.pl index 5936a658e5..f9d9711811 100644 --- a/crypto/des/asm/dest4-sparcv9.pl +++ b/crypto/des/asm/dest4-sparcv9.pl @@ -282,7 +282,15 @@ des_t4_cbc_decrypt: st %f3, [$ivec + 4] .type des_t4_cbc_decrypt,#function .size des_t4_cbc_decrypt,.-des_t4_cbc_decrypt +___ + +# One might wonder why does one have back-to-back des_iip/des_ip +# pairs between EDE passes. Indeed, aren't they inverse of each other? +# They almost are. Outcome of the pair is 32-bit words being swapped +# in target register. Consider pair of des_iip/des_ip as a way to +# perform the due swap, it's actually fastest way in this case. +$code.=<<___; .globl des_t4_ede3_cbc_encrypt .align 32 des_t4_ede3_cbc_encrypt: -- 2.25.1