naddy found sparc64 gets a little slower when unrolled.
ok deraadt
-/* $OpenBSD: sha2.c,v 1.19 2014/12/17 19:42:44 tedu Exp $ */
+/* $OpenBSD: sha2.c,v 1.20 2014/12/18 20:29:08 tedu Exp $ */
/*
* FILE: sha2.c
* #define SHA2_UNROLL_TRANSFORM
*
*/
+#if defined(__amd64__) || defined(__i386__)
#define SHA2_UNROLL_TRANSFORM
+#endif
/*** SHA-224/256/384/512 Machine Architecture Definitions *****************/
/*
-/* $OpenBSD: sha2.c,v 1.10 2014/12/17 19:40:24 tedu Exp $ */
+/* $OpenBSD: sha2.c,v 1.11 2014/12/18 20:29:08 tedu Exp $ */
/*
* FILE: sha2.c
*
*/
#ifndef SMALL_KERNEL
+#if defined(__amd64__) || defined(__i386__)
#define SHA2_UNROLL_TRANSFORM
#endif
-
+#endif
/*** SHA-256/384/512 Machine Architecture Definitions *****************/
/*