Mesa (master): gallium/util: Define ffsll on MinGW.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Feb 4 15:00:27 UTC 2015
Module: Mesa
Branch: master
Commit: 46f1033067b3fc118048bf30e47b1270ae471371
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=46f1033067b3fc118048bf30e47b1270ae471371
Author: Jose Fonseca <jfonseca at vmware.com>
Date: Wed Feb 4 14:58:20 2015 +0000
gallium/util: Define ffsll on MinGW.
Trivial.
(Fixing MSVC will be far less so, as _BitScanForward64 is only supported on x64.)
---
src/gallium/auxiliary/util/u_math.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 8eb840f..7687100 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -530,6 +530,7 @@ unsigned ffs( unsigned u )
}
#elif defined(__MINGW32__) || defined(PIPE_OS_ANDROID)
#define ffs __builtin_ffs
+#define ffsll __builtin_ffsll
#endif
#endif /* FFS_DEFINED */
More information about the mesa-commit
mailing list