Silence the warning about this always-true comparison.
src/util/softfloat.c:214:42: warning: comparison of constant 32768
with expression of type 'int16_t' (aka 'short') is always false
[-Wtautological-constant-out-of-range-compare]
} else if ((e > 0x1d) || (0x8000 <= m)) {
~~~~~~ ^ ~
Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
if (e < 0) {
m = _mesa_shift_right_jam32(m, -e);
e = 0;
- } else if ((e > 0x1d) || (0x8000 <= m)) {
+ } else if (e > 0x1d) {
e = 0x1f;
m = 0;
return (s << 15) + (e << 10) + m - 1;