freebsd-skq/lib/libc/mips/gen
Alex Richardson 55c6cacd56 Fix fabs() for MIPS when used on -0.0
It would previously return negative zero for -0.0 since -0.0 does not
compare less than 0. The issue was discovered when running the libc++
test suite on softfloat MIPS64.

I have verified that both clang and GCC generate sensible code for the
builtin. For soft float they clear the sign bit using integer operations
and in hard float mode they use abs.d.

Reviewed by:	#mips, jhb, brooks, imp, emaste
Approved by:	jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D13135
2017-11-28 20:37:27 +00:00
..
hardfloat
_ctx_start.S
_set_tp.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
_setjmp.S Replace SOFTFLOAT with __mips_soft_float, which gcc/clang define for us. 2017-03-16 21:05:21 +00:00
fabs.c Fix fabs() for MIPS when used on -0.0 2017-11-28 20:37:27 +00:00
fabs.S
flt_rounds.c Replace SOFTFLOAT with __mips_soft_float, which gcc/clang define for us. 2017-03-16 21:05:21 +00:00
infinity.c
ldexp.S
longjmp.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
makecontext.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
Makefile.inc
setjmp.S Replace SOFTFLOAT with __mips_soft_float, which gcc/clang define for us. 2017-03-16 21:05:21 +00:00
signalcontext.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
sigsetjmp.S