Page MenuHomeFreeBSD

lib/msun: Avoid FE_INEXACT for x86 log2l/log10l
ClosedPublic

Authored by arichardson on Feb 19 2021, 12:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 12, 7:07 PM
Unknown Object (File)
Tue, Nov 11, 2:26 AM
Unknown Object (File)
Wed, Oct 29, 9:09 AM
Unknown Object (File)
Mon, Oct 27, 11:38 AM
Unknown Object (File)
Sat, Oct 25, 4:50 PM
Unknown Object (File)
Mon, Oct 20, 12:36 AM
Unknown Object (File)
Oct 17 2025, 4:31 AM
Unknown Object (File)
Oct 16 2025, 6:16 PM
Subscribers

Details

Summary

This fixes tests/lib/msun/logarithm_test after compiling the test with
-fno-builtin (D28577). Adding invln10_lo + invln10_10 results in
FE_INEXACT and the same for the log2l invln2_lo + invln2_hi. This patch
avoids FE_INEXACT by defining a constant and using that.

Test Plan

logarithm_test works for me now.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37280
Build 34169: arc lint + arc unit

Event Timeline

Although the original authors seem to dislike constant folding by the compiler, it is a good idea here. :)

This revision is now accepted and ready to land.Mar 5 2021, 8:48 PM