Mesa (gallium-0.2): util: Define ffs for MinGW.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Jan 30 14:59:39 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 462f09487efac27173c231b09861b4f5316eb11d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=462f09487efac27173c231b09861b4f5316eb11d

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Jan 30 14:59:32 2009 +0000

util: Define ffs for MinGW.

---

 src/gallium/auxiliary/util/u_math.h |    4 ++++
 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 aa4fa17..ab6f39a 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.




More information about the mesa-commit mailing list