From: Brad Smith Date: Mon, 5 Jan 2009 20:58:32 +0000 (-0500) Subject: Disable __builtin_clz() intrinsic on gcc versions prior to 3.4. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=87b6d55ebda8a11186f7b09b5866b05a4584d13d;p=x264.git Disable __builtin_clz() intrinsic on gcc versions prior to 3.4. The function did not exist before that version. --- diff --git a/common/osdep.h b/common/osdep.h index 94d5c1ad..c9dd3c45 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -170,7 +170,7 @@ static ALWAYS_INLINE intptr_t endian_fix( intptr_t x ) } #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 3) #define x264_clz(x) __builtin_clz(x) #else static int ALWAYS_INLINE x264_clz( uint32_t x )