bug in ldexp with directed rounding

Howland, Craig D. - US craig.howland@caci.com
Mon Feb 2 17:34:16 GMT 2026


Paul:
     The test case is flawed in that it does not check the return value of fesetround() (or FE_ALL_EXCEPT).  On the majority of platforms fenv is not supported, so the results are as expected and valid.  It is not stated what platform the test case results are from, but guessing x86_64, that is among the unsupported.
                Craig
________________________________
From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Sent: Monday, February 2, 2026 4:45 AM
To: newlib@sourceware.org <newlib@sourceware.org>
Subject: bug in ldexp with directed rounding

EXTERNAL EMAIL - This email originated from outside of CACI. Do not click any links or attachments unless you recognize and trust the sender.





       Hi,

this bug, reported in 2023, is still there in 4.6.0:

https://sourceware.org/pipermail/newlib/2023/020225.html

The same bug occurs with ldexpf and ldexpl.

Paul

________________________________

This electronic message contains information from CACI International Inc or subsidiary companies, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the recipient(s) named above. If you are not an intended recipient, be aware that any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20260202/8c67bc69/attachment.htm>


More information about the Newlib mailing list