Module: Mesa Branch: main Commit: e350193eb56e5b6489199b005a54d2c5e48fb1cd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e350193eb56e5b6489199b005a54d2c5e48fb1cd
Author: Erik Faye-Lund <erik.faye-l...@collabora.com> Date: Fri Jun 2 14:46:43 2023 +0200 util: remove unused lut This was added in 153c714f2af ("util: add softfloat functions to operate with doubles and floats"), but never used. Let's just drop it. Reviewed-by: Yonggang Luo <luoyongg...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25746> --- src/util/softfloat.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/util/softfloat.c b/src/util/softfloat.c index 2ff835f7452..995e9825166 100644 --- a/src/util/softfloat.c +++ b/src/util/softfloat.c @@ -70,25 +70,6 @@ typedef union { double f; int64_t i; uint64_t u; } di_type; typedef union { float f; int32_t i; uint32_t u; } fi_type; -const uint8_t count_leading_zeros8[256] = { - 8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 -}; - /** * \brief Shifts 'a' right by the number of bits given in 'dist', which must be in * the range 1 to 63. If any nonzero bits are shifted off, they are "jammed"