summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-30 14:59:32 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-01-30 14:59:32 +0000
commit462f09487efac27173c231b09861b4f5316eb11d (patch)
tree61f3ec922b901bf82c5da6599c9fb1668ea2842f /src/gallium/auxiliary
parent7996b3e034f92eeceed3f3e7c01eb1f829d98b18 (diff)
util: Define ffs for MinGW.
Diffstat (limited to 'src/gallium/auxiliary')
-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 aa4fa17b59..ab6f39ac31 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.