[PATCH] Fix powf overflow handling in non-nearest rounding mode [BZ #23961]
Joseph Myers
joseph@codesourcery.com
Mon Dec 10 22:20:00 GMT 2018
On Mon, 10 Dec 2018, Szabolcs Nagy wrote:
> 2018-12-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
>
> [BZ #23961]
> * math/auto-libm-test-in: Add new test case.
> * math/auto-libm-test-out-pow: Regenerated.
> * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
OK.
(It's possible some architecture with its own powf implementation could
need to XFAIL the new tests if that architecture doesn't get overflow
exactly right for those cases: the test infrastructure doesn't currently
support marking a test as very close to the overflow threshold and then
allowing appropriately for computed results on the other side of that
threshold only being slightly inaccurate, so OK, as long as they handle
errno / exceptions consistently with the returned value.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list