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

support f*_algebraic #3596

Merged
merged 1 commit into from
May 11, 2024
Merged

support f*_algebraic #3596

merged 1 commit into from
May 11, 2024

Conversation

bend-n
Copy link
Contributor

@bend-n bend-n commented May 11, 2024

supports the f*_algebraic intrinsics.

@bend-n bend-n force-pushed the support_fstar_algebraic branch from 0ba4af3 to 2ddc838 Compare May 11, 2024 01:42
@RalfJung
Copy link
Member

Thanks!

This should use adjust_nan to avoid making any guarantees about the NaNs being returned.

Ideally, we'd also not return the exact result but perturb it a bit, to drive home the point that these operations are non-deterministic. But the existing fast-math intrinsics don't do that either so we can leave that to #3555.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put the test into the tests/pass/intrinsics folder.

@bend-n
Copy link
Contributor Author

bend-n commented May 11, 2024

This should use adjust_nan to avoid making any guarantees about the NaNs being

the comment on f*_fast says that wrapping_binary_op already calls generate_nan?

@bend-n bend-n force-pushed the support_fstar_algebraic branch from 2ddc838 to 406c7dd Compare May 11, 2024 09:48
@RalfJung
Copy link
Member

RalfJung commented May 11, 2024

the comment on f*_fast says that wrapping_binary_op already calls generate_nan?

Ah, you're right, thanks!

@RalfJung
Copy link
Member

Thanks, looks good. :)

Please squash the commits.

@bend-n bend-n force-pushed the support_fstar_algebraic branch from 820efe2 to 18379e8 Compare May 11, 2024 10:14
@RalfJung
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented May 11, 2024

📌 Commit 18379e8 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented May 11, 2024

⌛ Testing commit 18379e8 with merge 24fc363...

@bors
Copy link
Contributor

bors commented May 11, 2024

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 24fc363 to master...

@bors bors merged commit 24fc363 into rust-lang:master May 11, 2024
8 checks passed
@bend-n bend-n deleted the support_fstar_algebraic branch May 11, 2024 11:00
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.

3 participants