summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-02-04 14:58:20 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-02-04 14:58:20 +0000
commit46f1033067b3fc118048bf30e47b1270ae471371 (patch)
tree0f5508868b43a650e289497c140d7fd27953fb85 /src/gallium
parent6c5af1dc4e7871ddd0383713b9d5382318a34fc9 (diff)
gallium/util: Define ffsll on MinGW.
Trivial. (Fixing MSVC will be far less so, as _BitScanForward64 is only supported on x64.)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 8eb840f1ec..7687100ae6 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 */