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)
Fri, Apr 19, 9:11 PM
Unknown Object (File)
Thu, Apr 18, 4:41 PM
Unknown Object (File)
Thu, Apr 18, 4:39 PM
Unknown Object (File)
Thu, Apr 18, 4:38 PM
Unknown Object (File)
Wed, Apr 17, 11:39 PM
Unknown Object (File)
Mar 10 2024, 12:54 AM
Unknown Object (File)
Feb 8 2024, 1:22 AM
Unknown Object (File)
Feb 2 2024, 2:38 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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