-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
1 / 11 of 1 issue completedLabels
A-floating-pointArea: Floating point numbers and arithmeticArea: Floating point numbers and arithmeticC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(float_minimum_maximum)]
This is the tracking issue for the f{32,64}::{min,max}imum
functions.
It provide IEEE 754-2019 minimum
and maximum
functions to f32/f64.
Public API
impl f32 {
pub const fn minimum(self, other: f32) -> f32;
pub const fn maximum(self, other: f32) -> f32;
}
impl f64 {
pub const fn minimum(self, other: f64) -> f64;
pub const fn maximum(self, other: f64) -> f64;
}
Steps / History
- Implementation: Adds IEEE 754-2019 minimun and maximum functions for f32/f64 #91008
- Constified in Make some float methods unstable
const fn
#130568 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Should the implementation be stabilized in it's current state (ie. without intrinsic: explanation and llvm issue) ?
- Should it be called like IEEE 754-2019 (
minimum
andmaximum
) or something else ? Tracking Issue for float_minimum_maximum #91079 (comment) - Should the standard library have this function at all (we already have
min
/max
) ?
joseluis, petamoriken and 7086cmd
Sub-issues
Metadata
Metadata
Assignees
Labels
A-floating-pointArea: Floating point numbers and arithmeticArea: Floating point numbers and arithmeticC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.