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
..
2012-08-08 11:04:18 +00:00
2020-08-03 13:29:27 +02:00
2020-08-03 13:29:27 +02:00
2020-03-26 12:21:33 +01:00
2020-03-26 12:21:33 +01:00
2018-06-27 15:40:49 +02:00
2020-08-03 13:29:27 +02:00
2012-08-08 11:04:18 +00:00
2018-09-03 09:41:23 +02:00
2015-05-27 13:30:20 +02:00
2020-08-03 13:29:27 +02:00
2020-08-03 13:29:27 +02:00
2020-03-19 16:46:17 +01:00
2020-03-26 12:21:33 +01:00
2020-03-26 12:21:33 +01:00
2018-08-08 10:50:19 +02:00
2017-10-13 10:58:00 +02:00
2020-08-03 13:29:27 +02:00
2009-07-09 17:04:56 +00:00
2010-03-05 08:55:16 +00:00
2015-02-06 16:14:04 +00:00
2012-08-08 11:04:18 +00:00
2012-08-08 11:04:18 +00:00
2018-08-08 10:50:19 +02:00
2019-01-23 10:46:30 +01:00
2020-03-18 10:05:11 +01:00
2020-03-03 16:45:22 +01:00
2017-10-13 10:58:00 +02:00
2017-12-07 11:54:11 +00:00
2019-01-23 10:46:24 +01:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2020-08-03 13:29:27 +02:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2017-12-01 03:41:53 -06:00
2018-08-29 15:57:27 +02:00
2020-08-03 13:29:27 +02:00
2018-06-21 09:37:04 +02:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2011-01-12 22:25:15 +00:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2007-05-17 21:52:11 +00:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2017-10-13 10:58:00 +02:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2017-10-13 10:58:00 +02:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2019-01-23 10:46:30 +01:00
2018-06-21 09:37:04 +02:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:24 +01:00
2011-01-12 22:25:15 +00:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00
2019-01-23 10:46:30 +01:00