projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a15647
)
mesa: use BITFIELD64_BIT() macro
author
Brian Paul
<brianp@vmware.com>
Wed, 2 Jun 2010 20:48:27 +0000
(14:48 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 2 Jun 2010 21:34:49 +0000
(15:34 -0600)
src/mesa/shader/prog_print.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_print.c
b/src/mesa/shader/prog_print.c
index f66c240ce783df6448be7d24586d28a7369369e8..05aae83f0c17670fd3c74e8878c3fc857963f8e1 100644
(file)
--- a/
src/mesa/shader/prog_print.c
+++ b/
src/mesa/shader/prog_print.c
@@
-876,7
+876,7
@@
binary(GLbitfield64 val)
static char buf[80];
GLint i, len = 0;
for (i = 63; i >= 0; --i) {
- if (val & (
1ULL << i
))
+ if (val & (
BITFIELD64_BIT(i)
))
buf[len++] = '1';
else if (len > 0 || i == 0)
buf[len++] = '0';