[PATCH] Improve math_errhandling
Joseph Myers
joseph@codesourcery.com
Thu Dec 21 20:41:00 GMT 2017
On Thu, 21 Dec 2017, Wilco Dijkstra wrote:
> OK, setting to 0 for __FAST_MATH__ seems reasonable. Here is the revised patch:
>
> Currently math_errhandling is always set to MATH_ERRNO | MATH_ERREXCEPT
> even if -fno-math-errno is used. It is not defined at all when fast-math
> is used. Set it to 0 with fast-math - this is noncomforming but more
> useful than not define math_errhandling at all. Also take __NO_MATH_ERRNO__
> into account and update comment.
>
> ChangeLog:
> 2017-12-21 Wilco Dijkstra <wdijkstr@arm.com>
>
> * math/math.h (math_errhandling): Add __NO_MATH_ERRNO__ check.
This patch is OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list