summaryrefslogtreecommitdiff
path: root/x86
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2005-09-28 15:57:21 +0200
committerNiels Möller <nisse@lysator.liu.se>2005-09-28 15:57:21 +0200
commite1bb57b2d85c0268feab9b07dd5ecbdb8402de58 (patch)
tree3e30273a2b397b0efe530481ffb9a25c13ee1282 /x86
parenta46840ab63234824758578b1d6fdc83efd76a529 (diff)
downloadnettle-e1bb57b2d85c0268feab9b07dd5ecbdb8402de58.tar.gz
New comment.
Rev: src/nettle/x86/sha1-compress.asm:1.7
Diffstat (limited to 'x86')
-rw-r--r--x86/sha1-compress.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/x86/sha1-compress.asm b/x86/sha1-compress.asm
index 27a1e224..00d8d836 100644
--- a/x86/sha1-compress.asm
+++ b/x86/sha1-compress.asm
@@ -101,6 +101,9 @@ define(<ROUND>, <
addl $7, $5
$6($2,$3,$4)
addl TMP, $5
+
+C Using the TMP register can be avoided, by rotating $1 in place,
+C adding, and then rotating back.
movl $1, TMP
roll <$>5, TMP
addl TMP, $5