@@ -3982,6 +3982,52 @@ 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+ #[ cfg( not( bootstrap) ) ]
3994+ pub const fn minimumf16 ( x : f16 , y : f16 ) -> f16 ;
3995+
3996+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f32` values.
3997+ ///
3998+ /// Note that, unlike most intrinsics, this is safe to call;
3999+ /// it does not require an `unsafe` block.
4000+ /// Therefore, implementations must not require the user to uphold
4001+ /// any safety invariants.
4002+ #[ rustc_nounwind]
4003+ #[ rustc_intrinsic_const_stable_indirect]
4004+ #[ rustc_intrinsic]
4005+ #[ cfg( not( bootstrap) ) ]
4006+ pub const fn minimumf32 ( x : f32 , y : f32 ) -> f32 ;
4007+
4008+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f64` values.
4009+ ///
4010+ /// Note that, unlike most intrinsics, this is safe to call;
4011+ /// it does not require an `unsafe` block.
4012+ /// Therefore, implementations must not require the user to uphold
4013+ /// any safety invariants.
4014+ #[ rustc_nounwind]
4015+ #[ rustc_intrinsic_const_stable_indirect]
4016+ #[ rustc_intrinsic]
4017+ #[ cfg( not( bootstrap) ) ]
4018+ pub const fn minimumf64 ( x : f64 , y : f64 ) -> f64 ;
4019+
4020+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f128` values.
4021+ ///
4022+ /// Note that, unlike most intrinsics, this is safe to call;
4023+ /// it does not require an `unsafe` block.
4024+ /// Therefore, implementations must not require the user to uphold
4025+ /// any safety invariants.
4026+ #[ rustc_nounwind]
4027+ #[ rustc_intrinsic]
4028+ #[ cfg( not( bootstrap) ) ]
4029+ pub const fn minimumf128 ( x : f128 , y : f128 ) -> f128 ;
4030+
39854031/// Returns the maximum of two `f16` values.
39864032///
39874033/// Note that, unlike most intrinsics, this is safe to call;
@@ -4036,6 +4082,52 @@ pub const fn maxnumf64(x: f64, y: f64) -> f64;
40364082#[ rustc_intrinsic]
40374083pub const fn maxnumf128 ( x : f128 , y : f128 ) -> f128 ;
40384084
4085+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f16` values.
4086+ ///
4087+ /// Note that, unlike most intrinsics, this is safe to call;
4088+ /// it does not require an `unsafe` block.
4089+ /// Therefore, implementations must not require the user to uphold
4090+ /// any safety invariants.
4091+ #[ rustc_nounwind]
4092+ #[ rustc_intrinsic]
4093+ #[ cfg( not( bootstrap) ) ]
4094+ pub const fn maximumf16 ( x : f16 , y : f16 ) -> f16 ;
4095+
4096+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f32` values.
4097+ ///
4098+ /// Note that, unlike most intrinsics, this is safe to call;
4099+ /// it does not require an `unsafe` block.
4100+ /// Therefore, implementations must not require the user to uphold
4101+ /// any safety invariants.
4102+ #[ rustc_nounwind]
4103+ #[ rustc_intrinsic_const_stable_indirect]
4104+ #[ rustc_intrinsic]
4105+ #[ cfg( not( bootstrap) ) ]
4106+ pub const fn maximumf32 ( x : f32 , y : f32 ) -> f32 ;
4107+
4108+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f64` values.
4109+ ///
4110+ /// Note that, unlike most intrinsics, this is safe to call;
4111+ /// it does not require an `unsafe` block.
4112+ /// Therefore, implementations must not require the user to uphold
4113+ /// any safety invariants.
4114+ #[ rustc_nounwind]
4115+ #[ rustc_intrinsic_const_stable_indirect]
4116+ #[ rustc_intrinsic]
4117+ #[ cfg( not( bootstrap) ) ]
4118+ pub const fn maximumf64 ( x : f64 , y : f64 ) -> f64 ;
4119+
4120+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f128` values.
4121+ ///
4122+ /// Note that, unlike most intrinsics, this is safe to call;
4123+ /// it does not require an `unsafe` block.
4124+ /// Therefore, implementations must not require the user to uphold
4125+ /// any safety invariants.
4126+ #[ rustc_nounwind]
4127+ #[ rustc_intrinsic]
4128+ #[ cfg( not( bootstrap) ) ]
4129+ pub const fn maximumf128 ( x : f128 , y : f128 ) -> f128 ;
4130+
40394131/// Returns the absolute value of an `f16`.
40404132///
40414133/// The stabilized version of this intrinsic is
0 commit comments