[Bug math/6793] logb() does not set errno on pole error

wdijkstr at arm dot com sourceware-bugzilla@sourceware.org
Mon Oct 20 17:03:38 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=6793

Wilco <wdijkstr at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wdijkstr at arm dot com

--- Comment #5 from Wilco <wdijkstr at arm dot com> ---
It's not clear what is best here - many functions (such as all the round,
roundeven, rint variations) do not set errno at all, so it appears ilogb/llogb
are the odd ones out. Several targets inline these functions as native
operations and thus will never set errno. GCC may decide not to inline some of
these with -fno-math-errno, but again, this is not consistent. Then GLIBC
decides to inline some anyway using -fno-math-errno.

In short, it's a total mess.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list