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

Tracking Issue for algebraic floating point operations #136468

Closed
3 tasks
calder opened this issue Feb 3, 2025 · 2 comments
Closed
3 tasks

Tracking Issue for algebraic floating point operations #136468

calder opened this issue Feb 3, 2025 · 2 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@calder
Copy link

calder commented Feb 3, 2025

Feature gate: #![feature(float_algebraic)]

This is a tracking issue for exposing core::intrinsics::f*_algebraic in stable Rust.

Public API

// core::num::f32

impl f32 {
    pub fn add_algebraic(self, rhs: f32) -> f32;
    pub fn sub_algebraic(self, rhs: f32) -> f32;
    pub fn mul_algebraic(self, rhs: f32) -> f32;
    pub fn div_algebraic(self, rhs: f32) -> f32;
    pub fn rem_algebraic(self, rhs: f32) -> f32;
}
// core::num::f64

impl f64 {
    pub fn add_algebraic(self, rhs: f64) -> f64;
    pub fn sub_algebraic(self, rhs: f64) -> f64;
    pub fn mul_algebraic(self, rhs: f64) -> f64;
    pub fn div_algebraic(self, rhs: f64) -> f64;
    pub fn rem_algebraic(self, rhs: f64) -> f64;
}

Steps / History

Unresolved Questions

  • None yet.

References

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@calder calder added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Feb 3, 2025
@Noratrieb
Copy link
Member

you've opened two issues

@calder
Copy link
Author

calder commented Feb 3, 2025

Whoops, sorry about that! Thanks for closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants