From 3dbe6c4b4ebce4fe12af39f354f3768fc7ad8b10 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Fri, 15 Feb 2002 22:59:19 +0100
Subject: [PATCH] (_aes_crypt): Moved reading of ctx->nrounds out of the loop.

Rev: src/nettle/sparc/aes.asm:1.32
---
 sparc/aes.asm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sparc/aes.asm b/sparc/aes.asm
index 0105bad4..7853e0e9 100644
--- a/sparc/aes.asm
+++ b/sparc/aes.asm
@@ -41,6 +41,9 @@ _aes_crypt:
 	add	%fp, -40, tmp
 	! Compute xor, so that we can swap efficiently.
 	xor	wtxt, tmp, diff
+	
+	ld	[ctx + AES_NROUNDS], nround
+
 .Lblock_loop:
 	! Read src, and add initial subkey
 	mov	-4, i
@@ -92,7 +95,6 @@ _aes_crypt:
 	! bleu	.Lsource_loop
 	! add	%o3, 4, %o3
 
-	ld	[ctx + AES_NROUNDS], nround
 	mov	1, round
 
 	! 4*i:	i
-- 
GitLab