summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-02-04 15:21:41 +0000
committerJose Fonseca <[email protected]>2015-02-04 15:22:59 +0000
commit661c8bb220faf6f7c2f065eec515cedfa8d5f8da (patch)
tree6cd8272986aa24a2ad7d75507dc0b78a0c3e7806
parent46f1033067b3fc118048bf30e47b1270ae471371 (diff)
gallium/util: Don't implement u_bit_scan64 on MSVC.
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.
-rw-r--r--src/gallium/auxiliary/util/u_math.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 7687100ae65..5db5b669961 100644
--- 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.