View all comments
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
Unresolved Questions
View all comments
Feature gate:
#![feature(float_minimum_maximum)]This is the tracking issue for the
f{32,64}::{min,max}imumfunctions.It provide IEEE 754-2019
minimumandmaximumfunctions to f32/f64.Public API
Steps / History
const fn#130568Unresolved Questions
{f16,f32,f64,f128}::{minimum,maximum}operations #140792Cannot select: constant:i128<0>forllvm.maximum.f128llvm/llvm-project#139380constant:i128<0>forllvm.maximum.f128llvm/llvm-project#139381i32 = setcc 0x00000000, Constant:i64llvm/llvm-project#140445minimumandmaximum) or something else ? Tracking Issue for float_minimum_maximum #91079 (comment)min/max) ?