glibc/sysdeps/ieee754
H.J. Lu 54fe008ba6 ldbl-96: Set -1 to "int sign_exponent:16"
ieee_long_double_shape_type has

typedef union
{
  long double value;
  struct
  {
    ...
    int sign_exponent:16;
    ...
  } parts;
} ieee_long_double_shape_type;

Clang issues an error:

../sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c:49:2: error: implicit truncation from 'int' to bit-field changes value from 65535 to -1 [-Werror,-Wbitfield-constant-conversion]
   49 |         SET_LDOUBLE_WORDS (ldnx, 0xffff,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |                            tests[i] >> 32, tests[i] & 0xffffffffULL);
      |

Use -1, instead of 0xffff, to silence Clang.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
2024-12-18 01:54:26 +08:00
..
dbl-64 math: Split s_erfF in erff and erfc 2024-11-22 10:52:26 -03:00
float128 math: Split s_erfF in erff and erfc 2024-11-22 10:52:26 -03:00
flt-32 math: Add internal roundeven_finite 2024-11-26 15:07:57 -03:00
ldbl-64-128 math: Provide missing math symbols on libc.a (BZ 31781) 2024-05-23 09:36:08 -03:00
ldbl-96 ldbl-96: Set -1 to "int sign_exponent:16" 2024-12-18 01:54:26 +08:00
ldbl-128 math: Split s_erfF in erff and erfc 2024-11-22 10:52:26 -03:00
ldbl-128ibm math: Split s_erfF in erff and erfc 2024-11-22 10:52:26 -03:00
ldbl-128ibm-compat Implement C23 atan2pi 2024-12-12 20:57:44 +00:00
ldbl-opt Implement C23 atan2pi 2024-12-12 20:57:44 +00:00
soft-fp Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ieee754.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
k_standard.c Use copysign functions not __copysign functions in glibc libm. 2018-09-27 20:04:48 +00:00
k_standardf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
k_standardl.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libm-alias-finite.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile
s_lib_version.c
s_matherr.c
s_signgam.c Remove unnecessary math_private.h includes. 2018-09-28 21:53:33 +00:00