@@ -3928,7 +3928,7 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
3928
3928
}
3929
3929
}
3930
3930
3931
- /// Returns the minimum of two `f16` values.
3931
+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f16` values.
3932
3932
///
3933
3933
/// Note that, unlike most intrinsics, this is safe to call;
3934
3934
/// it does not require an `unsafe` block.
@@ -3941,7 +3941,7 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
3941
3941
#[ rustc_intrinsic]
3942
3942
pub const fn minnumf16 ( x : f16 , y : f16 ) -> f16 ;
3943
3943
3944
- /// Returns the minimum of two `f32` values.
3944
+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f32` values.
3945
3945
///
3946
3946
/// Note that, unlike most intrinsics, this is safe to call;
3947
3947
/// it does not require an `unsafe` block.
@@ -3955,7 +3955,7 @@ pub const fn minnumf16(x: f16, y: f16) -> f16;
3955
3955
#[ rustc_intrinsic]
3956
3956
pub const fn minnumf32 ( x : f32 , y : f32 ) -> f32 ;
3957
3957
3958
- /// Returns the minimum of two `f64` values.
3958
+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f64` values.
3959
3959
///
3960
3960
/// Note that, unlike most intrinsics, this is safe to call;
3961
3961
/// it does not require an `unsafe` block.
@@ -3969,7 +3969,7 @@ pub const fn minnumf32(x: f32, y: f32) -> f32;
3969
3969
#[ rustc_intrinsic]
3970
3970
pub const fn minnumf64 ( x : f64 , y : f64 ) -> f64 ;
3971
3971
3972
- /// Returns the minimum of two `f128` values.
3972
+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f128` values.
3973
3973
///
3974
3974
/// Note that, unlike most intrinsics, this is safe to call;
3975
3975
/// it does not require an `unsafe` block.
@@ -3982,7 +3982,51 @@ 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 maximum of two `f16` values.
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]
4004
+ #[ cfg( not( bootstrap) ) ]
4005
+ pub const fn minimumf32 ( x : f32 , y : f32 ) -> f32 ;
4006
+
4007
+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f64` values.
4008
+ ///
4009
+ /// Note that, unlike most intrinsics, this is safe to call;
4010
+ /// it does not require an `unsafe` block.
4011
+ /// Therefore, implementations must not require the user to uphold
4012
+ /// any safety invariants.
4013
+ #[ rustc_nounwind]
4014
+ #[ rustc_intrinsic]
4015
+ #[ cfg( not( bootstrap) ) ]
4016
+ pub const fn minimumf64 ( x : f64 , y : f64 ) -> f64 ;
4017
+
4018
+ /// Returns the minimum (IEEE 754-2019 minimum) of two `f128` values.
4019
+ ///
4020
+ /// Note that, unlike most intrinsics, this is safe to call;
4021
+ /// it does not require an `unsafe` block.
4022
+ /// Therefore, implementations must not require the user to uphold
4023
+ /// any safety invariants.
4024
+ #[ rustc_nounwind]
4025
+ #[ rustc_intrinsic]
4026
+ #[ cfg( not( bootstrap) ) ]
4027
+ pub const fn minimumf128 ( x : f128 , y : f128 ) -> f128 ;
4028
+
4029
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f16` values.
3986
4030
///
3987
4031
/// Note that, unlike most intrinsics, this is safe to call;
3988
4032
/// it does not require an `unsafe` block.
@@ -3995,7 +4039,7 @@ pub const fn minnumf128(x: f128, y: f128) -> f128;
3995
4039
#[ rustc_intrinsic]
3996
4040
pub const fn maxnumf16 ( x : f16 , y : f16 ) -> f16 ;
3997
4041
3998
- /// Returns the maximum of two `f32` values.
4042
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f32` values.
3999
4043
///
4000
4044
/// Note that, unlike most intrinsics, this is safe to call;
4001
4045
/// it does not require an `unsafe` block.
@@ -4009,7 +4053,7 @@ pub const fn maxnumf16(x: f16, y: f16) -> f16;
4009
4053
#[ rustc_intrinsic]
4010
4054
pub const fn maxnumf32 ( x : f32 , y : f32 ) -> f32 ;
4011
4055
4012
- /// Returns the maximum of two `f64` values.
4056
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f64` values.
4013
4057
///
4014
4058
/// Note that, unlike most intrinsics, this is safe to call;
4015
4059
/// it does not require an `unsafe` block.
@@ -4023,7 +4067,7 @@ pub const fn maxnumf32(x: f32, y: f32) -> f32;
4023
4067
#[ rustc_intrinsic]
4024
4068
pub const fn maxnumf64 ( x : f64 , y : f64 ) -> f64 ;
4025
4069
4026
- /// Returns the maximum of two `f128` values.
4070
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f128` values.
4027
4071
///
4028
4072
/// Note that, unlike most intrinsics, this is safe to call;
4029
4073
/// it does not require an `unsafe` block.
@@ -4036,6 +4080,50 @@ pub const fn maxnumf64(x: f64, y: f64) -> f64;
4036
4080
#[ rustc_intrinsic]
4037
4081
pub const fn maxnumf128 ( x : f128 , y : f128 ) -> f128 ;
4038
4082
4083
+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f16` values.
4084
+ ///
4085
+ /// Note that, unlike most intrinsics, this is safe to call;
4086
+ /// it does not require an `unsafe` block.
4087
+ /// Therefore, implementations must not require the user to uphold
4088
+ /// any safety invariants.
4089
+ #[ rustc_nounwind]
4090
+ #[ rustc_intrinsic]
4091
+ #[ cfg( not( bootstrap) ) ]
4092
+ pub const fn maximumf16 ( x : f16 , y : f16 ) -> f16 ;
4093
+
4094
+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f32` values.
4095
+ ///
4096
+ /// Note that, unlike most intrinsics, this is safe to call;
4097
+ /// it does not require an `unsafe` block.
4098
+ /// Therefore, implementations must not require the user to uphold
4099
+ /// any safety invariants.
4100
+ #[ rustc_nounwind]
4101
+ #[ rustc_intrinsic]
4102
+ #[ cfg( not( bootstrap) ) ]
4103
+ pub const fn maximumf32 ( x : f32 , y : f32 ) -> f32 ;
4104
+
4105
+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f64` values.
4106
+ ///
4107
+ /// Note that, unlike most intrinsics, this is safe to call;
4108
+ /// it does not require an `unsafe` block.
4109
+ /// Therefore, implementations must not require the user to uphold
4110
+ /// any safety invariants.
4111
+ #[ rustc_nounwind]
4112
+ #[ rustc_intrinsic]
4113
+ #[ cfg( not( bootstrap) ) ]
4114
+ pub const fn maximumf64 ( x : f64 , y : f64 ) -> f64 ;
4115
+
4116
+ /// Returns the maximum (IEEE 754-2019 maximum) of two `f128` values.
4117
+ ///
4118
+ /// Note that, unlike most intrinsics, this is safe to call;
4119
+ /// it does not require an `unsafe` block.
4120
+ /// Therefore, implementations must not require the user to uphold
4121
+ /// any safety invariants.
4122
+ #[ rustc_nounwind]
4123
+ #[ rustc_intrinsic]
4124
+ #[ cfg( not( bootstrap) ) ]
4125
+ pub const fn maximumf128 ( x : f128 , y : f128 ) -> f128 ;
4126
+
4039
4127
/// Returns the absolute value of an `f16`.
4040
4128
///
4041
4129
/// The stabilized version of this intrinsic is
0 commit comments