mirror of
https://github.com/openssl/openssl.git
synced 2025-01-23 02:14:11 +08:00
_lrotl and _lrotr are defined in MSVC but nowhere else that we know
off.
This commit is contained in:
parent
cf194c1f68
commit
c2359eb18c
@ -151,7 +151,7 @@
|
||||
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
|
||||
*((c)++)=(unsigned char)(((l) )&0xff))
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(WIN32) && defined(_MSC_VER)
|
||||
#define ROTL(a,n) (_lrotl(a,n))
|
||||
#else
|
||||
#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n))))
|
||||
|
@ -155,7 +155,7 @@
|
||||
} \
|
||||
}
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(WIN32) && defined(_MSC_VER)
|
||||
#define ROTATE(a,n) (_lrotr(a,n))
|
||||
#else
|
||||
#define ROTATE(a,n) (((a)>>(n))+((a)<<(32-(n))))
|
||||
|
@ -146,7 +146,7 @@
|
||||
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
|
||||
*((c)++)=(unsigned char)(((l) )&0xff))
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(WIN32) && defined(_MSC_VER)
|
||||
#define ROTATE_l32(a,n) _lrotl(a,n)
|
||||
#define ROTATE_r32(a,n) _lrotr(a,n)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user