gallium/util: Define ffsll on MinGW.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 4 Feb 2015 14:58:20 +0000 (14:58 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 4 Feb 2015 14:58:20 +0000 (14:58 +0000)
Trivial.

(Fixing MSVC will be far less so, as _BitScanForward64 is only supported on x64.)

src/gallium/auxiliary/util/u_math.h

index 8eb840f1ec0fa4ee5712ac71e8d528588f5e77f2..7687100ae65722c3650146e65997f09028a91860 100644 (file)
@@ -530,6 +530,7 @@ unsigned ffs( unsigned u )
 }
 #elif defined(__MINGW32__) || defined(PIPE_OS_ANDROID)
 #define ffs __builtin_ffs
+#define ffsll __builtin_ffsll
 #endif
 
 #endif /* FFS_DEFINED */