util: Define ffs for MinGW.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 30 Jan 2009 14:59:32 +0000 (14:59 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 30 Jan 2009 14:59:32 +0000 (14:59 +0000)
src/gallium/auxiliary/util/u_math.h

index aa4fa17b5968fbd1f31b40911b9aeb37a96cf9c4..ab6f39ac31f44bab94038acb44c714f66efb93f2 100644 (file)
@@ -341,6 +341,10 @@ unsigned ffs( unsigned u )
 }
 #endif
 
+#ifdef __MINGW32__
+#define ffs __builtin_ffs
+#endif
+
 
 /**
  * Return float bits.