acadia-newlib/newlib/libm
Keith Packard 12ad9a46df libm/math: Use __math_xflow in obsolete math code [v2]
C compilers may fold const values at compile time, so expressions
which try to elicit underflow/overflow by performing simple
arithemetic on suitable values will not generate the required
exceptions.

Work around this by replacing code which does these arithmetic
operations with calls to the existing __math_xflow functions that are
designed to do this correctly.

Signed-off-by: Keith Packard <keithp@keithp.com>

----

v2:
	libm/math: Pass sign to __math_xflow instead of muliplying result
2020-08-03 13:29:27 +02:00
..
common libm/math: Use __math_xflow in obsolete math code [v2] 2020-08-03 13:29:27 +02:00
complex Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
fenv Add patch from Joel Sherrill for i386 and x86_64 fenv support 2019-10-08 16:59:04 -04:00
machine arm: Fix include to avoid undefined reference 2020-07-29 16:24:13 +02:00
math libm/math: Use __math_xflow in obsolete math code [v2] 2020-08-03 13:29:27 +02:00
mathfp Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
test Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
Makefile.am Add default implementation of fenv.h and all methods 2019-08-09 17:49:16 +02:00
Makefile.in Fix some generated files 2019-10-31 14:52:04 -04:00
aclocal.m4 Fix libm regenerated files again. 2016-02-17 17:06:46 -05:00
config.h.in import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
configure Bump up newlib release to 3.3.0 2020-01-21 15:17:43 -05:00
configure.in Add default implementation of fenv.h and all methods 2019-08-09 17:49:16 +02:00
libm.in.xml fenv: Include documentation in generated .info file 2019-08-15 12:04:50 +02:00
libm.texinfo fenv: Include documentation in generated .info file 2019-08-15 12:04:50 +02:00