diff options
author | José Fonseca <[email protected]> | 2010-04-07 21:00:05 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-04-07 21:00:05 +0100 |
commit | f15469039a4623ae89e7867e4904eec8eef6395b (patch) | |
tree | fda81f051612b00b54af10b95568556f95cbd9a1 /src/gallium/auxiliary | |
parent | 68df2949971f6a9c0854bdfb2a252cb82fd9b7aa (diff) |
util: Remove the half typedef from p_compiler.h.
Unnecessary, and doesn't even guarantee size.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_half.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_half.h b/src/gallium/auxiliary/util/u_half.h index bc41c65b961..5a116dae160 100644 --- a/src/gallium/auxiliary/util/u_half.h +++ b/src/gallium/auxiliary/util/u_half.h @@ -26,28 +26,28 @@ extern const uint8_t util_float_to_half_shift_table[512]; */ static INLINE uint32_t -util_half_to_floatui(half h) +util_half_to_floatui(uint16_t h) { unsigned exp = h >> 10; return util_half_to_float_mantissa_table[util_half_to_float_offset_table[exp] + (h & 0x3ff)] + util_half_to_float_exponent_table[exp]; } static INLINE float -util_half_to_float(half h) +util_half_to_float(uint16_t h) { union fi r; r.ui = util_half_to_floatui(h); return r.f; } -static INLINE half +static INLINE uint16_t util_floatui_to_half(uint32_t v) { unsigned signexp = v >> 23; return util_float_to_half_base_table[signexp] + ((v & 0x007fffff) >> util_float_to_half_shift_table[signexp]); } -static INLINE half +static INLINE uint16_t util_float_to_half(float f) { union fi i; |