diff options
Diffstat (limited to 'src/lib/libcrypto/md32_common.h')
-rw-r--r-- | src/lib/libcrypto/md32_common.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/libcrypto/md32_common.h b/src/lib/libcrypto/md32_common.h index 7b6a354478..bad34d22d6 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.20 2014/11/09 19:08:24 miod Exp $ */ | 1 | /* $OpenBSD: md32_common.h,v 1.21 2016/09/04 14:31:29 jsing 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 | * |
@@ -168,10 +168,6 @@ static inline uint32_t ROTATE(uint32_t a, uint32_t n) | |||
168 | *((unsigned int *)(c))=r; (c)+=4; }) | 168 | *((unsigned int *)(c))=r; (c)+=4; }) |
169 | # endif | 169 | # endif |
170 | #endif | 170 | #endif |
171 | #if defined(__s390__) || defined(__s390x__) | ||
172 | # define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4) | ||
173 | # define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4) | ||
174 | #endif | ||
175 | 171 | ||
176 | #ifndef HOST_c2l | 172 | #ifndef HOST_c2l |
177 | #define HOST_c2l(c,l) do {l =(((unsigned long)(*((c)++)))<<24); \ | 173 | #define HOST_c2l(c,l) do {l =(((unsigned long)(*((c)++)))<<24); \ |
@@ -190,16 +186,6 @@ static inline uint32_t ROTATE(uint32_t a, uint32_t n) | |||
190 | 186 | ||
191 | #elif defined(DATA_ORDER_IS_LITTLE_ENDIAN) | 187 | #elif defined(DATA_ORDER_IS_LITTLE_ENDIAN) |
192 | 188 | ||
193 | #if defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) | ||
194 | # if defined(__s390x__) | ||
195 | # define HOST_c2l(c,l) ({ asm ("lrv %0,%1" \ | ||
196 | :"=d"(l) :"m"(*(const unsigned int *)(c)));\ | ||
197 | (c)+=4; }) | ||
198 | # define HOST_l2c(l,c) ({ asm ("strv %1,%0" \ | ||
199 | :"=m"(*(unsigned int *)(c)) :"d"(l));\ | ||
200 | (c)+=4; }) | ||
201 | # endif | ||
202 | #endif | ||
203 | #if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) | 189 | #if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) |
204 | # define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4) | 190 | # define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4) |
205 | # define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4) | 191 | # define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4) |