winpr-crt: fix bit rotation macros
This commit is contained in:
parent
e97b53b96d
commit
c866d19bd4
2
libfreerdp/utils/test/.gitignore
vendored
2
libfreerdp/utils/test/.gitignore
vendored
@ -1 +1 @@
|
||||
TestFreeRDPutils.c
|
||||
TestFreeRDPUtils.c
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user