artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d191c24
)
be like the kernel and only unroll if not small
author
tedu
<tedu@openbsd.org>
Fri, 19 Dec 2014 15:14:04 +0000
(15:14 +0000)
committer
tedu
<tedu@openbsd.org>
Fri, 19 Dec 2014 15:14:04 +0000
(15:14 +0000)
lib/libc/hash/sha2.c
patch
|
blob
|
history
diff --git
a/lib/libc/hash/sha2.c
b/lib/libc/hash/sha2.c
index
729895b
..
23b4184
100644
(file)
--- a/
lib/libc/hash/sha2.c
+++ b/
lib/libc/hash/sha2.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sha2.c,v 1.2
1 2014/12/19 14:30:44 deraadt Exp $
*/
+/* $OpenBSD: sha2.c,v 1.2
2 2014/12/19 15:14:04 tedu Exp $
*/
/*
* FILE: sha2.c
@@
-52,9
+52,11
@@
* #define SHA2_UNROLL_TRANSFORM
*
*/
-#if defined(__amd64__)
+#ifndef SHA2_SMALL
+#if defined(__amd64__) || defined(__i386__)
#define SHA2_UNROLL_TRANSFORM
#endif
+#endif
/*** SHA-224/256/384/512 Machine Architecture Definitions *****************/
/*