diff options
author | Andy Polyakov <appro@openssl.org> | 2014-07-08 22:24:44 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-07-09 22:45:38 +0200 |
commit | 2064e2db08eb90da711999445680d45c44483e82 (patch) | |
tree | ff1c8a72aa142e58a73b0380e16e03c2324250b7 /crypto/md32_common.h | |
parent | de222838fe17a04b9694ad0e9c4604193c976fa7 (diff) |
Please Clang's sanitizer.
PR: #3424,#3423,#3422
(cherry picked from commit 021e5043e524b1cb28a929ef902548a987c16e65)
Diffstat (limited to 'crypto/md32_common.h')
-rw-r--r-- | crypto/md32_common.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crypto/md32_common.h b/crypto/md32_common.h index 147a7a00c3..1b84104354 100644 --- a/crypto/md32_common.h +++ b/crypto/md32_common.h @@ -235,10 +235,10 @@ # endif # endif # endif -#endif -#if defined(__s390__) || defined(__s390x__) -# define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4, (l)) -# define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4, (l)) +# if defined(__s390__) || defined(__s390x__) +# define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4, (l)) +# define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4, (l)) +# endif #endif #ifndef HOST_c2l @@ -269,12 +269,12 @@ (c)+=4; (l); }) # endif # endif -#endif -#if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) -# ifndef B_ENDIAN - /* See comment in DATA_ORDER_IS_BIG_ENDIAN section. */ -# define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4, l) -# define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4, l) +# if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) +# ifndef B_ENDIAN + /* See comment in DATA_ORDER_IS_BIG_ENDIAN section. */ +# define HOST_c2l(c,l) ((l)=*((const unsigned int *)(c)), (c)+=4, l) +# define HOST_l2c(l,c) (*((unsigned int *)(c))=(l), (c)+=4, l) +# endif # endif #endif |