projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f1033
)
gallium/util: Don't implement u_bit_scan64 on MSVC.
author
Jose Fonseca
<jfonseca@vmware.com>
Wed, 4 Feb 2015 15:21:41 +0000
(15:21 +0000)
committer
Jose Fonseca
<jfonseca@vmware.com>
Wed, 4 Feb 2015 15:22:59 +0000
(15:22 +0000)
As ffsll doesn't exist in MSVC yet, and u_bit_scan64 is only used by
radeonsi which is never built with MSVC.
This is just a stop-gap fix to unbreak MSVC build until we refactor these
mathematical portability wrappers into src/util.
Trivial.
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 7687100ae65722c3650146e65997f09028a91860..5db5b6699617a493c0c5f9e7c940c8ab98d2002b 100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-584,6
+584,7
@@
u_bit_scan(unsigned *mask)
return i;
}
+#ifndef _MSC_VER
static INLINE int
u_bit_scan64(uint64_t *mask)
{
@@
-591,6
+592,7
@@
u_bit_scan64(uint64_t *mask)
*mask &= ~(1llu << i);
return i;
}
+#endif
/**
* Return float bits.