summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-30 14:59:32 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-08-31 16:31:47 +0100
commitbb671681ecd2d6e553ce02d8c9be118d8585c3d3 (patch)
tree9050b83062c179bb14be48758cd835efb3fa761d
parenta3ca9191ff4b3a914a5f8086dae489682e2e1ff9 (diff)
util: Define ffs for MinGW.
(cherry picked from commit 462f09487efac27173c231b09861b4f5316eb11d)
-rw-r--r--src/gallium/auxiliary/util/u_math.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 1ae3234423..14560c4353 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -341,6 +341,10 @@ unsigned ffs( unsigned u )
}
#endif
+#ifdef __MINGW32__
+#define ffs __builtin_ffs
+#endif
+
/**
* Return float bits.