glibc/sysdeps/alpha/fpu
Aurelien Jarno 6a9dd7a7c5 Remove alpha specific fmax, fmin to fix sNaN handling [BZ #22660]
Various fmax and fmin function implementations mishandle sNaN
arguments:

(a) When both arguments are NaNs, the return value should be a qNaN,
but sometimes it is an sNaN if at least one argument is an sNaN.

(b) Under TS 18661-1 semantics, if either argument is an sNaN then the
result should be a qNaN (whereas if one argument is a qNaN and the
other is not a NaN, the result should be the non-NaN argument).
Various implementations treat sNaNs like qNaNs here.

One way to fix that is to detect the sNaN and add a special case. That
said there is no FPU instruction to do that, so it requires transfering
the FP value to an integer register and testing bits. This becomes quite
complicated so it's probably better to just use the generic versions of
these functions which just do that through issignaling.

Changelog:
	[BZ #22660]
	* sysdeps/alpha/fpu/s_fmax.S: Remove file.
	* sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
	* sysdeps/alpha/fpu/s_fmin.S: Likewise.
	* sysdeps/alpha/fpu/s_fminf.S: Likewise.
2018-01-02 09:56:02 +01:00
..
bits Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cabsf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cargf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cfloat-compat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cimagf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
conjf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
crealf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
e_sqrt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
e_sqrtf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fenv_libc.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feupdateenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ftestexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
get-rounding-mode.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libm-test-ulps Update Alpha libm-test-ulps 2017-12-06 18:55:09 -02:00
libm-test-ulps-name Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139). 2016-11-04 16:49:06 +00:00
math_private.h Add earlyclobber to sqrtt/sqrtf insns. 2017-04-26 04:21:59 -07:00
s_cacosf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cacoshf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_casinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_casinhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_catanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_catanhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ccosf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ccoshf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ceil.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ceilf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cexpf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_clog10f.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_clogf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysign.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysignf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cpowf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cprojf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csinhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csqrtf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ctanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ctanhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fabs.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fabsf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_floor.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_floorf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fma.c Use libm_alias_double for dbl-64 fma. 2017-10-04 20:32:48 +00:00
s_isnan.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnanf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llrint.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llrintf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llround.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llroundf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_lrint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lroundf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_trunc.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_truncf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00