Commit 031116cf authored by Alexandre Julliard's avatar Alexandre Julliard

msvcp90: Avoid depending on config.h for the __builtin_clz check.

parent 8cc83d7f
...@@ -1893,7 +1893,7 @@ typedef struct compact_block ...@@ -1893,7 +1893,7 @@ typedef struct compact_block
/* Return the integer base-2 logarithm of (x|1). Result is 0 for x == 0. */ /* Return the integer base-2 logarithm of (x|1). Result is 0 for x == 0. */
static inline unsigned int log2i(unsigned int x) static inline unsigned int log2i(unsigned int x)
{ {
#ifdef HAVE___BUILTIN_CLZ #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
return __builtin_clz(x|1) ^ 0x1f; return __builtin_clz(x|1) ^ 0x1f;
#else #else
static const unsigned int l[] = static const unsigned int l[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment