winpr-crt: fix bit rotation macros

This commit is contained in:
Marc-André Moreau 2014-05-23 14:00:46 -04:00
parent e97b53b96d
commit c866d19bd4
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
TestFreeRDPutils.c
TestFreeRDPUtils.c

View File

@ -32,19 +32,19 @@
#ifndef _WIN32
INLINE UINT32 _rotl(UINT32 value, int shift) {
static INLINE UINT32 _rotl(UINT32 value, int shift) {
return (value << shift) | (value >> (32 - shift));
}
INLINE UINT64 _rotl64(UINT64 value, int shift) {
static INLINE UINT64 _rotl64(UINT64 value, int shift) {
return (value << shift) | (value >> (64 - shift));
}
INLINE UINT32 _rotr(UINT32 value, int shift) {
static INLINE UINT32 _rotr(UINT32 value, int shift) {
return (value >> shift) | (value << (32 - shift));
}
INLINE UINT64 _rotr64(UINT64 value, int shift) {
static INLINE UINT64 _rotr64(UINT64 value, int shift) {
return (value >> shift) | (value << (64 - shift));
}