Module: Mesa
Branch: gallium-0.1
Commit: bb671681ecd2d6e553ce02d8c9be118d8585c3d3
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb671681ecd2d6e553ce02d8c9be118d8585c3d3

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

util: Define ffs for MinGW.
(cherry picked from commit 462f09487efac27173c231b09861b4f5316eb11d)

---

 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 1ae3234..14560c4 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.

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to