summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md32_common.h
diff options
context:
space:
mode:
authormiod <>2016-11-04 13:56:05 +0000
committermiod <>2016-11-04 13:56:05 +0000
commitd69d10da5510517830f98435b4984052c2d21825 (patch)
tree9363c8b7f4453a96c26a902a886921f7516d700f /src/lib/libcrypto/md32_common.h
parent76a784dab583cd423f3ff66636ea7b6b6f4dee61 (diff)
downloadopenbsd-d69d10da5510517830f98435b4984052c2d21825.tar.gz
openbsd-d69d10da5510517830f98435b4984052c2d21825.tar.bz2
openbsd-d69d10da5510517830f98435b4984052c2d21825.zip
Remove I386_ONLY define. It was only used to prefer a
faster-on-genuine-80386-but-slower-on-80486-onwards innstruction sequence in the SHA512 code, and had not been enabled in years, if at all. ok tom@ bcook@
Diffstat (limited to 'src/lib/libcrypto/md32_common.h')
-rw-r--r--src/lib/libcrypto/md32_common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/md32_common.h b/src/lib/libcrypto/md32_common.h
index bad34d22d6..0dca61710f 100644
--- a/src/lib/libcrypto/md32_common.h
+++ b/src/lib/libcrypto/md32_common.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: md32_common.h,v 1.21 2016/09/04 14:31:29 jsing Exp $ */ 1/* $OpenBSD: md32_common.h,v 1.22 2016/11/04 13:56:04 miod Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -152,8 +152,8 @@ static inline uint32_t ROTATE(uint32_t a, uint32_t n)
152#if defined(DATA_ORDER_IS_BIG_ENDIAN) 152#if defined(DATA_ORDER_IS_BIG_ENDIAN)
153 153
154#if defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) 154#if defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
155# if ((defined(__i386) || defined(__i386__)) && !defined(I386_ONLY)) || \ 155# if (defined(__i386) || defined(__i386__) || \
156 (defined(__x86_64) || defined(__x86_64__)) 156 defined(__x86_64) || defined(__x86_64__))
157 /* 157 /*
158 * This gives ~30-40% performance improvement in SHA-256 compiled 158 * This gives ~30-40% performance improvement in SHA-256 compiled
159 * with gcc [on P4]. Well, first macro to be frank. We can pull 159 * with gcc [on P4]. Well, first macro to be frank. We can pull