mirror of
https://github.com/fluencelabs/redis
synced 2025-07-31 00:11:56 +00:00
Jemalloc updated to 4.0.3.
This commit is contained in:
10
deps/jemalloc/include/msvc_compat/strings.h
vendored
10
deps/jemalloc/include/msvc_compat/strings.h
vendored
@@ -3,8 +3,9 @@
|
||||
|
||||
/* MSVC doesn't define ffs/ffsl. This dummy strings.h header is provided
|
||||
* for both */
|
||||
#include <intrin.h>
|
||||
#pragma intrinsic(_BitScanForward)
|
||||
#ifdef _MSC_VER
|
||||
# include <intrin.h>
|
||||
# pragma intrinsic(_BitScanForward)
|
||||
static __forceinline int ffsl(long x)
|
||||
{
|
||||
unsigned long i;
|
||||
@@ -20,4 +21,9 @@ static __forceinline int ffs(int x)
|
||||
return (ffsl(x));
|
||||
}
|
||||
|
||||
#else
|
||||
# define ffsl(x) __builtin_ffsl(x)
|
||||
# define ffs(x) __builtin_ffs(x)
|
||||
#endif
|
||||
|
||||
#endif /* strings_h */
|
||||
|
Reference in New Issue
Block a user