projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5af1d
)
gallium/util: Define ffsll on MinGW.
author
Jose Fonseca
<jfonseca@vmware.com>
Wed, 4 Feb 2015 14:58:20 +0000
(14:58 +0000)
committer
Jose Fonseca
<jfonseca@vmware.com>
Wed, 4 Feb 2015 14:58:20 +0000
(14:58 +0000)
Trivial.
(Fixing MSVC will be far less so, as _BitScanForward64 is only supported on x64.)
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index 8eb840f1ec0fa4ee5712ac71e8d528588f5e77f2..7687100ae65722c3650146e65997f09028a91860 100644
(file)
--- 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 */