@@ -3928,7 +3928,7 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
39283928 }
39293929}
39303930
3931- /// Returns the minimum of two `f16` values.
3931+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f16` values.
39323932///
39333933/// Note that, unlike most intrinsics, this is safe to call;
39343934/// 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) {
39413941#[ rustc_intrinsic]
39423942pub const fn minnumf16 ( x : f16 , y : f16 ) -> f16 ;
39433943
3944- /// Returns the minimum of two `f32` values.
3944+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f32` values.
39453945///
39463946/// Note that, unlike most intrinsics, this is safe to call;
39473947/// it does not require an `unsafe` block.
@@ -3955,7 +3955,7 @@ pub const fn minnumf16(x: f16, y: f16) -> f16;
39553955#[ rustc_intrinsic]
39563956pub const fn minnumf32 ( x : f32 , y : f32 ) -> f32 ;
39573957
3958- /// Returns the minimum of two `f64` values.
3958+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f64` values.
39593959///
39603960/// Note that, unlike most intrinsics, this is safe to call;
39613961/// it does not require an `unsafe` block.
@@ -3969,7 +3969,7 @@ pub const fn minnumf32(x: f32, y: f32) -> f32;
39693969#[ rustc_intrinsic]
39703970pub const fn minnumf64 ( x : f64 , y : f64 ) -> f64 ;
39713971
3972- /// Returns the minimum of two `f128` values.
3972+ /// Returns the minimum (IEEE 754-2008 minNum) of two `f128` values.
39733973///
39743974/// Note that, unlike most intrinsics, this is safe to call;
39753975/// it does not require an `unsafe` block.
@@ -3982,7 +3982,51 @@ 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 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.
39864030///
39874031/// Note that, unlike most intrinsics, this is safe to call;
39884032/// it does not require an `unsafe` block.
@@ -3995,7 +4039,7 @@ pub const fn minnumf128(x: f128, y: f128) -> f128;
39954039#[ rustc_intrinsic]
39964040pub const fn maxnumf16 ( x : f16 , y : f16 ) -> f16 ;
39974041
3998- /// Returns the maximum of two `f32` values.
4042+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f32` values.
39994043///
40004044/// Note that, unlike most intrinsics, this is safe to call;
40014045/// it does not require an `unsafe` block.
@@ -4009,7 +4053,7 @@ pub const fn maxnumf16(x: f16, y: f16) -> f16;
40094053#[ rustc_intrinsic]
40104054pub const fn maxnumf32 ( x : f32 , y : f32 ) -> f32 ;
40114055
4012- /// Returns the maximum of two `f64` values.
4056+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f64` values.
40134057///
40144058/// Note that, unlike most intrinsics, this is safe to call;
40154059/// it does not require an `unsafe` block.
@@ -4023,7 +4067,7 @@ pub const fn maxnumf32(x: f32, y: f32) -> f32;
40234067#[ rustc_intrinsic]
40244068pub const fn maxnumf64 ( x : f64 , y : f64 ) -> f64 ;
40254069
4026- /// Returns the maximum of two `f128` values.
4070+ /// Returns the maximum (IEEE 754-2008 maxNum) of two `f128` values.
40274071///
40284072/// Note that, unlike most intrinsics, this is safe to call;
40294073/// it does not require an `unsafe` block.
@@ -4036,6 +4080,50 @@ pub const fn maxnumf64(x: f64, y: f64) -> f64;
40364080#[ rustc_intrinsic]
40374081pub const fn maxnumf128 ( x : f128 , y : f128 ) -> f128 ;
40384082
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+
40394127/// Returns the absolute value of an `f16`.
40404128///
40414129/// The stabilized version of this intrinsic is
0 commit comments