From b3da475e6b36e8de252609c058887899be046cd9 Mon Sep 17 00:00:00 2001 From: tedu <> Date: Wed, 17 Dec 2014 19:42:44 +0000 Subject: [PATCH] unroll loops. much faster on amd64. ok deraadt millert --- src/lib/libc/hash/sha2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/libc/hash/sha2.c b/src/lib/libc/hash/sha2.c index e8216dfb..db6046cf 100644 --- a/src/lib/libc/hash/sha2.c +++ b/src/lib/libc/hash/sha2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha2.c,v 1.18 2014/07/20 04:22:34 guenther Exp $ */ +/* $OpenBSD: sha2.c,v 1.19 2014/12/17 19:42:44 tedu Exp $ */ /* * FILE: sha2.c @@ -52,6 +52,7 @@ * #define SHA2_UNROLL_TRANSFORM * */ +#define SHA2_UNROLL_TRANSFORM /*** SHA-224/256/384/512 Machine Architecture Definitions *****************/ /*