projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f031910
)
util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h
author
Brian Paul
<brianp@vmware.com>
Wed, 17 Oct 2012 00:32:57 +0000
(18:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 17 Oct 2012 16:13:30 +0000
(10:13 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_format_r11g11b10f.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_format_r11g11b10f.h
b/src/gallium/auxiliary/util/u_format_r11g11b10f.h
index bd64b2896b479ba8a243d1f644e016ddfc264aef..b883b318e03601f5cbfa68fb6644445f5a42167d 100644
(file)
--- a/
src/gallium/auxiliary/util/u_format_r11g11b10f.h
+++ b/
src/gallium/auxiliary/util/u_format_r11g11b10f.h
@@
-205,7
+205,7
@@
static INLINE float uf10_to_f32(uint16_t val)
float scale, decimal;
exponent -= 15;
if (exponent < 0) {
- scale = 1.0 / (1 << -exponent);
+ scale = 1.0
f
/ (1 << -exponent);
}
else {
scale = (float) (1 << exponent);