Skip to content

Tracking Issue for algebraic floating point operations #136468

Closed as duplicate of#136469
@calder

Description

@calder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions