diff options
author | marha <marha@users.sourceforge.net> | 2012-01-09 16:34:28 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-01-09 16:34:28 +0100 |
commit | a1e97828c89278770cb249039ec92d959440c640 (patch) | |
tree | f3d4ed7e3f3d589c606f01b3c9e6de03d638e2d3 /mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h | |
parent | 7e9f4ea970e8f7008c212d7d3918a974eb0066da (diff) | |
download | vcxsrv-a1e97828c89278770cb249039ec92d959440c640.tar.gz vcxsrv-a1e97828c89278770cb249039ec92d959440c640.tar.bz2 vcxsrv-a1e97828c89278770cb249039ec92d959440c640.zip |
xwininfo libX11 mesa mkfontscale xkeyboard-config git update 9 jan 2011
Diffstat (limited to 'mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h')
-rw-r--r-- | mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h b/mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h index 6bb430296..bd64b2896 100644 --- a/mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h +++ b/mesalib/src/gallium/auxiliary/util/u_format_r11g11b10f.h @@ -119,12 +119,12 @@ static INLINE float uf11_to_f32(uint16_t val) float scale, decimal; exponent -= 15; if (exponent < 0) { - scale = 1.0 / (1 << -exponent); + scale = 1.0f / (1 << -exponent); } else { - scale = 1 << exponent; + scale = (float) (1 << exponent); } - decimal = 1.0 + (float) mantissa / 64; + decimal = 1.0f + (float) mantissa / 64; f32.f = scale * decimal; } @@ -208,9 +208,9 @@ static INLINE float uf10_to_f32(uint16_t val) scale = 1.0 / (1 << -exponent); } else { - scale = 1 << exponent; + scale = (float) (1 << exponent); } - decimal = 1.0 + (float) mantissa / 32; + decimal = 1.0f + (float) mantissa / 32; f32.f = scale * decimal; } |