summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md32_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/md32_common.h')
-rw-r--r--src/lib/libcrypto/md32_common.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/libcrypto/md32_common.h b/src/lib/libcrypto/md32_common.h
index bb7381952a..1cb783944e 100644
--- a/src/lib/libcrypto/md32_common.h
+++ b/src/lib/libcrypto/md32_common.h
@@ -165,7 +165,7 @@
165 asm ( \ 165 asm ( \
166 "roll %1,%0" \ 166 "roll %1,%0" \
167 : "=r"(ret) \ 167 : "=r"(ret) \
168 : "I"(n), "0"((unsigned int)(a)) \ 168 : "I"(n), "0"(a) \
169 : "cc"); \ 169 : "cc"); \
170 ret; \ 170 ret; \
171 }) 171 })
@@ -383,7 +383,6 @@ int HASH_FINAL (unsigned char *md, HASH_CTX *c)
383 } 383 }
384 384
385#ifndef MD32_REG_T 385#ifndef MD32_REG_T
386#if defined(__alpha) || defined(__sparcv9) || defined(__mips)
387#define MD32_REG_T long 386#define MD32_REG_T long
388/* 387/*
389 * This comment was originaly written for MD5, which is why it 388 * This comment was originaly written for MD5, which is why it
@@ -401,15 +400,9 @@ int HASH_FINAL (unsigned char *md, HASH_CTX *c)
401 * Well, to be honest it should say that this *prevents* 400 * Well, to be honest it should say that this *prevents*
402 * performance degradation. 401 * performance degradation.
403 * <appro@fy.chalmers.se> 402 * <appro@fy.chalmers.se>
404 */ 403 * Apparently there're LP64 compilers that generate better
405#else 404 * code if A-D are declared int. Most notably GCC-x86_64
406/* 405 * generates better code.
407 * Above is not absolute and there are LP64 compilers that
408 * generate better code if MD32_REG_T is defined int. The above
409 * pre-processor condition reflects the circumstances under which
410 * the conclusion was made and is subject to further extension.
411 * <appro@fy.chalmers.se> 406 * <appro@fy.chalmers.se>
412 */ 407 */
413#define MD32_REG_T int
414#endif
415#endif 408#endif