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

test: Accept small numerical differences in more mathematical tests #8312

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

smcv
Copy link
Contributor

@smcv smcv commented Sep 28, 2023

We can't rely on irrational numbers like pi being represented exactly, particularly when compiling for i386, where the i387 floating-point interface carries out calculations in registers that have higher precision than the actual double-precision variable. The 1980s were a strange time.

Resolves: #8311

@smcv
Copy link
Contributor Author

smcv commented Sep 28, 2023

This is not quite right as-is, atan2_yInfCases and atan2_xInfCases are still failing.

@smcv smcv marked this pull request as ready for review September 28, 2023 16:07
@smcv
Copy link
Contributor Author

smcv commented Sep 28, 2023

Updated version seems to be suffiicent.

We can't rely on irrational numbers like pi being represented exactly,
particularly when compiling for i386, where the i387 floating-point
interface carries out calculations in registers that have higher
precision than the actual double-precision variable. The 1980s were a
strange time.

Resolves: libsdl-org#8311
Signed-off-by: Simon McVittie <[email protected]>
@slouken slouken merged commit 6248472 into libsdl-org:main Sep 28, 2023
@slouken
Copy link
Collaborator

slouken commented Sep 28, 2023

Merged, thanks!

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.

[SDL3] testautomation acos, asin, atan2 tests failing on i386 (without MMX/SSE/SSE2)
2 participants