@@ -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,53 @@ 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_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
+
4031
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f16` values.
3986
4032
///
3987
4033
/// Note that, unlike most intrinsics, this is safe to call;
3988
4034
/// it does not require an `unsafe` block.
@@ -3995,7 +4041,7 @@ pub const fn minnumf128(x: f128, y: f128) -> f128;
3995
4041
#[ rustc_intrinsic]
3996
4042
pub const fn maxnumf16 ( x : f16 , y : f16 ) -> f16 ;
3997
4043
3998
- /// Returns the maximum of two `f32` values.
4044
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f32` values.
3999
4045
///
4000
4046
/// Note that, unlike most intrinsics, this is safe to call;
4001
4047
/// it does not require an `unsafe` block.
@@ -4009,7 +4055,7 @@ pub const fn maxnumf16(x: f16, y: f16) -> f16;
4009
4055
#[ rustc_intrinsic]
4010
4056
pub const fn maxnumf32 ( x : f32 , y : f32 ) -> f32 ;
4011
4057
4012
- /// Returns the maximum of two `f64` values.
4058
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f64` values.
4013
4059
///
4014
4060
/// Note that, unlike most intrinsics, this is safe to call;
4015
4061
/// it does not require an `unsafe` block.
@@ -4023,7 +4069,7 @@ pub const fn maxnumf32(x: f32, y: f32) -> f32;
4023
4069
#[ rustc_intrinsic]
4024
4070
pub const fn maxnumf64 ( x : f64 , y : f64 ) -> f64 ;
4025
4071
4026
- /// Returns the maximum of two `f128` values.
4072
+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f128` values.
4027
4073
///
4028
4074
/// Note that, unlike most intrinsics, this is safe to call;
4029
4075
/// it does not require an `unsafe` block.
@@ -4036,6 +4082,52 @@ pub const fn maxnumf64(x: f64, y: f64) -> f64;
4036
4082
#[ rustc_intrinsic]
4037
4083
pub const fn maxnumf128 ( x : f128 , y : f128 ) -> f128 ;
4038
4084
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
+
4039
4131
/// Returns the absolute value of an `f16`.
4040
4132
///
4041
4133
/// The stabilized version of this intrinsic is
0 commit comments