projects
/
platform
/
upstream
/
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
f66c240
..
05aae83
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';