File tree Expand file tree Collapse file tree 9 files changed +6
-8
lines changed
Expand file tree Collapse file tree 9 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1310,27 +1310,31 @@ pub fn log2f128(x: f128) -> f128;
13101310///
13111311/// The stabilized version of this intrinsic is
13121312/// [`f16::mul_add`](../../std/primitive.f16.html#method.mul_add)
1313+ #[ rustc_intrinsic_const_stable_indirect]
13131314#[ rustc_intrinsic]
13141315#[ rustc_nounwind]
13151316pub const fn fmaf16 ( a : f16 , b : f16 , c : f16 ) -> f16 ;
13161317/// Returns `a * b + c` for `f32` values.
13171318///
13181319/// The stabilized version of this intrinsic is
13191320/// [`f32::mul_add`](../../std/primitive.f32.html#method.mul_add)
1321+ #[ rustc_intrinsic_const_stable_indirect]
13201322#[ rustc_intrinsic]
13211323#[ rustc_nounwind]
13221324pub const fn fmaf32 ( a : f32 , b : f32 , c : f32 ) -> f32 ;
13231325/// Returns `a * b + c` for `f64` values.
13241326///
13251327/// The stabilized version of this intrinsic is
13261328/// [`f64::mul_add`](../../std/primitive.f64.html#method.mul_add)
1329+ #[ rustc_intrinsic_const_stable_indirect]
13271330#[ rustc_intrinsic]
13281331#[ rustc_nounwind]
13291332pub const fn fmaf64 ( a : f64 , b : f64 , c : f64 ) -> f64 ;
13301333/// Returns `a * b + c` for `f128` values.
13311334///
13321335/// The stabilized version of this intrinsic is
13331336/// [`f128::mul_add`](../../std/primitive.f128.html#method.mul_add)
1337+ #[ rustc_intrinsic_const_stable_indirect]
13341338#[ rustc_intrinsic]
13351339#[ rustc_nounwind]
13361340pub const fn fmaf128 ( a : f128 , b : f128 , c : f128 ) -> f128 ;
Original file line number Diff line number Diff line change @@ -1660,7 +1660,6 @@ impl f128 {
16601660 #[ doc( alias = "fmaf128" , alias = "fusedMultiplyAdd" ) ]
16611661 #[ unstable( feature = "f128" , issue = "116909" ) ]
16621662 #[ must_use = "method returns a new number and does not mutate the original value" ]
1663- #[ rustc_const_unstable( feature = "const_mul_add" , issue = "146724" ) ]
16641663 pub const fn mul_add ( self , a : f128 , b : f128 ) -> f128 {
16651664 intrinsics:: fmaf128 ( self , a, b)
16661665 }
Original file line number Diff line number Diff line change @@ -1635,7 +1635,6 @@ impl f16 {
16351635 #[ unstable( feature = "f16" , issue = "116909" ) ]
16361636 #[ doc( alias = "fmaf16" , alias = "fusedMultiplyAdd" ) ]
16371637 #[ must_use = "method returns a new number and does not mutate the original value" ]
1638- #[ rustc_const_unstable( feature = "const_mul_add" , issue = "146724" ) ]
16391638 pub const fn mul_add ( self , a : f16 , b : f16 ) -> f16 {
16401639 intrinsics:: fmaf16 ( self , a, b)
16411640 }
Original file line number Diff line number Diff line change @@ -1799,7 +1799,6 @@ pub mod math {
17991799 #[ doc( alias = "fmaf" , alias = "fusedMultiplyAdd" ) ]
18001800 #[ must_use = "method returns a new number and does not mutate the original value" ]
18011801 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1802- #[ rustc_const_unstable( feature = "const_mul_add" , issue = "146724" ) ]
18031802 pub const fn mul_add ( x : f32 , y : f32 , z : f32 ) -> f32 {
18041803 intrinsics:: fmaf32 ( x, y, z)
18051804 }
Original file line number Diff line number Diff line change @@ -1797,7 +1797,6 @@ pub mod math {
17971797 #[ doc( alias = "fma" , alias = "fusedMultiplyAdd" ) ]
17981798 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
17991799 #[ must_use = "method returns a new number and does not mutate the original value" ]
1800- #[ rustc_const_unstable( feature = "const_mul_add" , issue = "146724" ) ]
18011800 pub const fn mul_add ( x : f64 , a : f64 , b : f64 ) -> f64 {
18021801 intrinsics:: fmaf64 ( x, a, b)
18031802 }
Original file line number Diff line number Diff line change 2222#![ feature( const_destruct) ]
2323#![ feature( const_drop_in_place) ]
2424#![ feature( const_eval_select) ]
25- #![ feature( const_mul_add) ]
2625#![ feature( const_ops) ]
2726#![ feature( const_option_ops) ]
2827#![ feature( const_ref_cell) ]
Original file line number Diff line number Diff line change 328328#![ feature( char_internals) ]
329329#![ feature( clone_to_uninit) ]
330330#![ feature( const_convert) ]
331- #![ feature( const_mul_add) ]
332331#![ feature( core_intrinsics) ]
333332#![ feature( core_io_borrowed_buf) ]
334333#![ feature( drop_guard) ]
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ impl f32 {
217217 #[ must_use = "method returns a new number and does not mutate the original value" ]
218218 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
219219 #[ inline]
220- #[ rustc_const_unstable ( feature = "const_mul_add" , issue = "146724 " ) ]
220+ #[ rustc_const_stable ( feature = "const_mul_add" , since = "CURRENT_RUSTC_VERSION " ) ]
221221 pub const fn mul_add ( self , a : f32 , b : f32 ) -> f32 {
222222 core:: f32:: math:: mul_add ( self , a, b)
223223 }
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ impl f64 {
217217 #[ must_use = "method returns a new number and does not mutate the original value" ]
218218 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
219219 #[ inline]
220- #[ rustc_const_unstable ( feature = "const_mul_add" , issue = "146724 " ) ]
220+ #[ rustc_const_stable ( feature = "const_mul_add" , since = "CURRENT_RUSTC_VERSION " ) ]
221221 pub const fn mul_add ( self , a : f64 , b : f64 ) -> f64 {
222222 core:: f64:: math:: mul_add ( self , a, b)
223223 }
You can’t perform that action at this time.
0 commit comments