@@ -3982,6 +3982,48 @@ pub const fn minnumf64(x: f64, y: f64) -> f64;
3982
3982
#[ rustc_intrinsic]
3983
3983
pub const fn minnumf128 ( x : f128 , y : f128 ) -> f128 ;
3984
3984
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
+
3985
4027
/// Returns the maximum of two `f16` values.
3986
4028
///
3987
4029
/// Note that, unlike most intrinsics, this is safe to call;
@@ -4036,6 +4078,48 @@ pub const fn maxnumf64(x: f64, y: f64) -> f64;
4036
4078
#[ rustc_intrinsic]
4037
4079
pub const fn maxnumf128 ( x : f128 , y : f128 ) -> f128 ;
4038
4080
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
+
4039
4123
/// Returns the absolute value of an `f16`.
4040
4124
///
4041
4125
/// The stabilized version of this intrinsic is
0 commit comments