Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs/libm/libm: apply epsilon relax factor only if epsilon is small #13307

Merged

Conversation

pkarashchenko
Copy link
Contributor

Summary

The previous attempt to fix log and logf operation in #13294 was wrong.
This is a second attempt that reverts previous change and applied relaxation only if epsilon calculation is evaluated to DBL_EPSILON/FLT_EPSILON case.

Impact

Should fix #13286

Testing

Tested few value returned by Nuttx libm log and compared with values returned by compiler version of log.

…laxation

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
@nicolas71640
Copy link
Contributor

Tested on xmc4800 (related to this issue : #13286). Works perfectly

@xiaoxiang781216 xiaoxiang781216 merged commit c6a7816 into apache:master Sep 6, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] pow() nuttx libmath return wrong value
3 participants