@@ -3982,6 +3982,48 @@ pub const fn minnumf64(x: f64, y: f64) -> f64;
39823982#[ rustc_intrinsic]
39833983pub const fn minnumf128 ( x : f128 , y : f128 ) -> f128 ;
39843984
3985+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f16` values.
3986+ ///
3987+ /// Note that, unlike most intrinsics, this is safe to call;
3988+ /// it does not require an `unsafe` block.
3989+ /// Therefore, implementations must not require the user to uphold
3990+ /// any safety invariants.
3991+ #[ rustc_nounwind]
3992+ #[ rustc_intrinsic]
3993+ pub const fn minimumf16 ( x : f16 , y : f16 ) -> f16 ;
3994+
3995+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f32` values.
3996+ ///
3997+ /// Note that, unlike most intrinsics, this is safe to call;
3998+ /// it does not require an `unsafe` block.
3999+ /// Therefore, implementations must not require the user to uphold
4000+ /// any safety invariants.
4001+ #[ rustc_nounwind]
4002+ #[ rustc_intrinsic_const_stable_indirect]
4003+ #[ rustc_intrinsic]
4004+ pub const fn minimumf32 ( x : f32 , y : f32 ) -> f32 ;
4005+
4006+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f64` values.
4007+ ///
4008+ /// Note that, unlike most intrinsics, this is safe to call;
4009+ /// it does not require an `unsafe` block.
4010+ /// Therefore, implementations must not require the user to uphold
4011+ /// any safety invariants.
4012+ #[ rustc_nounwind]
4013+ #[ rustc_intrinsic_const_stable_indirect]
4014+ #[ rustc_intrinsic]
4015+ pub const fn minimumf64 ( x : f64 , y : f64 ) -> f64 ;
4016+
4017+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f128` values.
4018+ ///
4019+ /// Note that, unlike most intrinsics, this is safe to call;
4020+ /// it does not require an `unsafe` block.
4021+ /// Therefore, implementations must not require the user to uphold
4022+ /// any safety invariants.
4023+ #[ rustc_nounwind]
4024+ #[ rustc_intrinsic]
4025+ pub const fn minimumf128 ( x : f128 , y : f128 ) -> f128 ;
4026+
39854027/// Returns the maximum of two `f16` values.
39864028///
39874029/// Note that, unlike most intrinsics, this is safe to call;
@@ -4036,6 +4078,48 @@ pub const fn maxnumf64(x: f64, y: f64) -> f64;
40364078#[ rustc_intrinsic]
40374079pub const fn maxnumf128 ( x : f128 , y : f128 ) -> f128 ;
40384080
4081+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f16` values.
4082+ ///
4083+ /// Note that, unlike most intrinsics, this is safe to call;
4084+ /// it does not require an `unsafe` block.
4085+ /// Therefore, implementations must not require the user to uphold
4086+ /// any safety invariants.
4087+ #[ rustc_nounwind]
4088+ #[ rustc_intrinsic]
4089+ pub const fn maximumf16 ( x : f16 , y : f16 ) -> f16 ;
4090+
4091+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f32` values.
4092+ ///
4093+ /// Note that, unlike most intrinsics, this is safe to call;
4094+ /// it does not require an `unsafe` block.
4095+ /// Therefore, implementations must not require the user to uphold
4096+ /// any safety invariants.
4097+ #[ rustc_nounwind]
4098+ #[ rustc_intrinsic_const_stable_indirect]
4099+ #[ rustc_intrinsic]
4100+ pub const fn maximumf32 ( x : f32 , y : f32 ) -> f32 ;
4101+
4102+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f64` values.
4103+ ///
4104+ /// Note that, unlike most intrinsics, this is safe to call;
4105+ /// it does not require an `unsafe` block.
4106+ /// Therefore, implementations must not require the user to uphold
4107+ /// any safety invariants.
4108+ #[ rustc_nounwind]
4109+ #[ rustc_intrinsic_const_stable_indirect]
4110+ #[ rustc_intrinsic]
4111+ pub const fn maximumf64 ( x : f64 , y : f64 ) -> f64 ;
4112+
4113+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f128` values.
4114+ ///
4115+ /// Note that, unlike most intrinsics, this is safe to call;
4116+ /// it does not require an `unsafe` block.
4117+ /// Therefore, implementations must not require the user to uphold
4118+ /// any safety invariants.
4119+ #[ rustc_nounwind]
4120+ #[ rustc_intrinsic]
4121+ pub const fn maximumf128 ( x : f128 , y : f128 ) -> f128 ;
4122+
40394123/// Returns the absolute value of an `f16`.
40404124///
40414125/// The stabilized version of this intrinsic is
0 commit comments