unroll loops. much faster on amd64. ok deraadt millert
authortedu <tedu@openbsd.org>
Wed, 17 Dec 2014 19:42:44 +0000 (19:42 +0000)
committertedu <tedu@openbsd.org>
Wed, 17 Dec 2014 19:42:44 +0000 (19:42 +0000)
lib/libc/hash/sha2.c

index e8216df..db6046c 100644 (file)
@@ -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 *****************/
 /*