mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 04:31:03 +00:00
debf7618f6
The powerpc32 versions of ceil, floor, round, trunc, rint, nearbyint and their float versions return sNaN for sNaN input when they should return qNaN. This patch fixes them to add a NaN argument to itself to quiet sNaNs before returning. The powerpc64 versions, which have the same bug, will be addressed separately. Tested for powerpc32. [BZ #20160] * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN argument to itself before returning the result. * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise. * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise. |
||
---|---|---|
.. | ||
__longjmp-common.S | ||
__longjmp.S | ||
configure | ||
configure.ac | ||
fix-int-fp-convert-zero.h | ||
fprrest.S | ||
fprsave.S | ||
Makefile | ||
s_ceil.S | ||
s_ceilf.S | ||
s_copysign.S | ||
s_copysignf.S | ||
s_copysignl.S | ||
s_fabs.S | ||
s_fabsl.S | ||
s_fdim.c | ||
s_floor.S | ||
s_floorf.S | ||
s_fma.S | ||
s_fmax.S | ||
s_fmin.S | ||
s_isnan.S | ||
s_llrint.c | ||
s_llrintf.c | ||
s_llround.c | ||
s_llroundf.c | ||
s_lrint.S | ||
s_lround.S | ||
s_lroundf.S | ||
s_nearbyint.S | ||
s_nearbyintf.S | ||
s_rint.S | ||
s_rintf.S | ||
s_round.S | ||
s_roundf.S | ||
s_trunc.S | ||
s_truncf.S | ||
setjmp-common.S | ||
setjmp.S |