I am discussing the OpenBSD logb and logbf from the mathematical part
of the C standard library, the same which were imported from NetBSD.

They currently return constants for subnormal inputs. As far as I
understand, this is not only not very useful for doing math, it also
conflicts with POSIX/SUS and the C standard and the established
practice of what other libraries are doing: FreeBSD libm, openlibm,
Go(lang) math library, even OpenBSD's ilogb and logbl do the right
thing.

Included is a tentative fix (did not test) made by looking at how
subnormals are dealt with in FreeBSD's msun and in openlibm.

Regards,
Neven Sajko

Attachment: diff
Description: Binary data

Reply via email to