projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7996b3e
)
util: Define ffs for MinGW.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 30 Jan 2009 14:59:32 +0000
(14:59 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 30 Jan 2009 14:59:32 +0000
(14:59 +0000)
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 aa4fa17b5968fbd1f31b40911b9aeb37a96cf9c4..ab6f39ac31f44bab94038acb44c714f66efb93f2 100644
(file)
--- 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.