Skip to content

Remove stochastic rounding mode #305

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

stephentyrone
Copy link
Member

It's a useful operation, but it deserves its own API to allow the use of a custom random source. Also, the existing API blocks some constant-folding operations because the call to the system random source is an opaque optimization barrier, so removing it allows us to produce better codegen for the other rounding modes.

We're also bumping required Swift tools version to 5.9, and removing the executable test targets for log/log1p, as they're really only useful for development of those algorithms.

It's a useful operation, but it deserves its own API to allow the use of a custom random source.
Also, the existing API blocks some constant-folding operations because the call to the system random source is an opaque optimization barrier, so removing it allows us to produce better codegen for the other rounding modes.

We're also bumping required Swift version to 5.9, and removing the executable test targets for log/log1p, as they're really only useful for development of those algorithms.
@stephentyrone
Copy link
Member Author

@swift-ci test

@stephentyrone stephentyrone merged commit 2b458e8 into apple:main Apr 10, 2025
22 checks passed
@stephentyrone stephentyrone deleted the remove-stochastic-rounding branch April 10, 2025 15:51
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.

1 participant