diff options
author | Andy Polyakov <appro@openssl.org> | 2004-06-11 17:50:57 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-06-11 17:50:57 +0000 |
commit | 385c8e89f482eec183b2255fd8e498e2d87b60d1 (patch) | |
tree | c8e5e5e3ee0e656bdf92b5a951af935febca9ab3 | |
parent | 263e3151e2b2ee293bf987c4a086782e4c59fbf8 (diff) | |
download | openssl-new-385c8e89f482eec183b2255fd8e498e2d87b60d1.tar.gz |
SHA fails to compile on x86_64 if compiled with custom flags, without
recommended -DMD32_REG_T=int in particular.
PR: 893
Submitted by: Michal Ludvig <michal-list@logix.cz>
-rw-r--r-- | crypto/md32_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/md32_common.h b/crypto/md32_common.h index 53db17e1bc..5bdcf035aa 100644 --- a/crypto/md32_common.h +++ b/crypto/md32_common.h @@ -293,9 +293,9 @@ * this trick on x86* platforms only, because these CPUs can fetch * unaligned data without raising an exception. */ -# define HOST_c2l(c,l) ({ (l)=*((const unsigned int *)(c)); \ - asm ("bswapl %0":"=r"(l):"0"(l)); \ - (c)+=4; (l); }) +# define HOST_c2l(c,l) ({ unsigned int r=*((const unsigned int *)(c)); \ + asm ("bswapl %0":"=r"(r):"0"(r)); \ + (c)+=4; (l)=r; }) # define HOST_l2c(l,c) ({ unsigned int r=(l); \ asm ("bswapl %0":"=r"(r):"0"(r)); \ *((unsigned int *)(c))=r; (c)+=4; r; }) |