X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Frculfhash.c;h=b25c1c182ca77e913ad1b100f9254329087fff2b;hb=dc325c1d762bbbdc1866e590f4649078f8600664;hp=cd1c8ed0994c3db4fda7acaa9e1f9f1ca66172de;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/liblttng-ust/rculfhash.c b/liblttng-ust/rculfhash.c index cd1c8ed0..b25c1c18 100644 --- a/liblttng-ust/rculfhash.c +++ b/liblttng-ust/rculfhash.c @@ -256,6 +256,7 @@ #include #include +#include #include #include #include @@ -405,7 +406,7 @@ unsigned long bit_reverse_ulong(unsigned long v) * Returns 0 if no bit is set, else returns the position of the most * significant bit (from 1 to 32 on 32-bit, from 1 to 64 on 64-bit). */ -#if defined(__i386) || defined(__x86_64) +#if defined(LTTNG_UST_ARCH_X86) static inline unsigned int fls_u32(uint32_t x) { @@ -421,7 +422,7 @@ unsigned int fls_u32(uint32_t x) #define HAS_FLS_U32 #endif -#if defined(__x86_64) +#if defined(LTTNG_UST_ARCH_AMD64) static inline unsigned int fls_u64(uint64_t x) {