projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: Move util_is_power_of_two to bitscan.h and rename to util_is_power_of_two_or_zero
[mesa.git]
/
src
/
gallium
/
auxiliary
/
util
/
u_ringbuffer.c
diff --git
a/src/gallium/auxiliary/util/u_ringbuffer.c
b/src/gallium/auxiliary/util/u_ringbuffer.c
index 4d6166833e4f60b397270268b4150ffb12277e8d..f6bb910671ef2e6e2f966f627df617ec97cfda86 100644
(file)
--- a/
src/gallium/auxiliary/util/u_ringbuffer.c
+++ b/
src/gallium/auxiliary/util/u_ringbuffer.c
@@
-27,7
+27,7
@@
struct util_ringbuffer *util_ringbuffer_create( unsigned dwords )
if (!ring)
return NULL;
- assert(util_is_power_of_two(dwords));
+ assert(util_is_power_of_two
_or_zero
(dwords));
ring->buf = MALLOC( dwords * sizeof(unsigned) );
if (ring->buf == NULL)