diff options
author | José Fonseca <[email protected]> | 2010-04-04 20:43:52 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-04-06 15:38:21 +0100 |
commit | 04ea6f5dd84bb91e91225133f3a67e38ed7a3fad (patch) | |
tree | c7b7ca9254d29c5d03e9af970542c1a4b86bbfcb /src/gallium | |
parent | 05b494c10181cff6a37557f530cfaf5b8d6c8e3d (diff) |
util: Make half float lookup tables constant.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_half.h | 10 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_half.py | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/u_half.h b/src/gallium/auxiliary/util/u_half.h index a28b1fd1d93..bc41c65b961 100644 --- a/src/gallium/auxiliary/util/u_half.h +++ b/src/gallium/auxiliary/util/u_half.h @@ -8,11 +8,11 @@ extern "C" { #endif -extern uint32_t util_half_to_float_mantissa_table[2048]; -extern uint32_t util_half_to_float_exponent_table[64]; -extern uint32_t util_half_to_float_offset_table[64]; -extern uint16_t util_float_to_half_base_table[512]; -extern uint8_t util_float_to_half_shift_table[512]; +extern const uint32_t util_half_to_float_mantissa_table[2048]; +extern const uint32_t util_half_to_float_exponent_table[64]; +extern const uint32_t util_half_to_float_offset_table[64]; +extern const uint16_t util_float_to_half_base_table[512]; +extern const uint8_t util_float_to_half_shift_table[512]; /* * Note that if the half float is a signaling NaN, the x87 FPU will turn diff --git a/src/gallium/auxiliary/util/u_half.py b/src/gallium/auxiliary/util/u_half.py index a92f758750c..8007482e971 100644 --- a/src/gallium/auxiliary/util/u_half.py +++ b/src/gallium/auxiliary/util/u_half.py @@ -56,7 +56,7 @@ def begin(t, n, l): table_index = 0 table_length = l print - print t + " " + n + "[" + str(l) + "] = {" + print "const " + t + " " + n + "[" + str(l) + "] = {" def value(v): global table_index |