summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha
diff options
context:
space:
mode:
authormiod <>2014-04-17 21:17:12 +0000
committermiod <>2014-04-17 21:17:12 +0000
commitaa8f085033b21b0ec0b70c18909ba27ef8752e51 (patch)
treeda9109a7546d5e98b8647a37cc675d8b776d00ad /src/lib/libcrypto/sha
parente3644ed49258ff4a399142bf4ed0a7ba5f9bf76a (diff)
downloadopenbsd-aa8f085033b21b0ec0b70c18909ba27ef8752e51.tar.gz
openbsd-aa8f085033b21b0ec0b70c18909ba27ef8752e51.tar.bz2
openbsd-aa8f085033b21b0ec0b70c18909ba27ef8752e51.zip
Get rid of MS Visual C compiler and Intel C compiler specific defines.
Diffstat (limited to 'src/lib/libcrypto/sha')
-rw-r--r--src/lib/libcrypto/sha/sha512.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/libcrypto/sha/sha512.c b/src/lib/libcrypto/sha/sha512.c
index 32bfecbf9b..c92f18e418 100644
--- a/src/lib/libcrypto/sha/sha512.c
+++ b/src/lib/libcrypto/sha/sha512.c
@@ -346,36 +346,6 @@ static const SHA_LONG64 K512[80] = {
346 : "=r"(ret) \ 346 : "=r"(ret) \
347 : "r"(a),"K"(n)); ret; }) 347 : "r"(a),"K"(n)); ret; })
348# endif 348# endif
349# elif defined(_MSC_VER)
350# if defined(_WIN64) /* applies to both IA-64 and AMD64 */
351# pragma intrinsic(_rotr64)
352# define ROTR(a,n) _rotr64((a),n)
353# endif
354# if defined(_M_IX86) && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
355# if defined(I386_ONLY)
356 static SHA_LONG64 __fastcall __pull64be(const void *x)
357 { _asm mov edx, [ecx + 0]
358 _asm mov eax, [ecx + 4]
359 _asm xchg dh,dl
360 _asm xchg ah,al
361 _asm rol edx,16
362 _asm rol eax,16
363 _asm xchg dh,dl
364 _asm xchg ah,al
365 }
366# else
367 static SHA_LONG64 __fastcall __pull64be(const void *x)
368 { _asm mov edx, [ecx + 0]
369 _asm mov eax, [ecx + 4]
370 _asm bswap edx
371 _asm bswap eax
372 }
373# endif
374# define PULL64(x) __pull64be(&(x))
375# if _MSC_VER<=1200
376# pragma inline_depth(0)
377# endif
378# endif
379# endif 349# endif
380#endif 350#endif
381 351