@@ -1379,8 +1379,9 @@ impl f128 {
13791379 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13801380 #[ must_use = "method returns a new number and does not mutate the original value" ]
13811381 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1382+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13821383 #[ inline]
1383- pub fn algebraic_add ( self , rhs : f128 ) -> f128 {
1384+ pub const fn algebraic_add ( self , rhs : f128 ) -> f128 {
13841385 intrinsics:: fadd_algebraic ( self , rhs)
13851386 }
13861387
@@ -1389,8 +1390,9 @@ impl f128 {
13891390 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13901391 #[ must_use = "method returns a new number and does not mutate the original value" ]
13911392 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1393+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13921394 #[ inline]
1393- pub fn algebraic_sub ( self , rhs : f128 ) -> f128 {
1395+ pub const fn algebraic_sub ( self , rhs : f128 ) -> f128 {
13941396 intrinsics:: fsub_algebraic ( self , rhs)
13951397 }
13961398
@@ -1399,8 +1401,9 @@ impl f128 {
13991401 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14001402 #[ must_use = "method returns a new number and does not mutate the original value" ]
14011403 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1404+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14021405 #[ inline]
1403- pub fn algebraic_mul ( self , rhs : f128 ) -> f128 {
1406+ pub const fn algebraic_mul ( self , rhs : f128 ) -> f128 {
14041407 intrinsics:: fmul_algebraic ( self , rhs)
14051408 }
14061409
@@ -1409,8 +1412,9 @@ impl f128 {
14091412 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14101413 #[ must_use = "method returns a new number and does not mutate the original value" ]
14111414 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1415+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14121416 #[ inline]
1413- pub fn algebraic_div ( self , rhs : f128 ) -> f128 {
1417+ pub const fn algebraic_div ( self , rhs : f128 ) -> f128 {
14141418 intrinsics:: fdiv_algebraic ( self , rhs)
14151419 }
14161420
@@ -1419,8 +1423,9 @@ impl f128 {
14191423 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14201424 #[ must_use = "method returns a new number and does not mutate the original value" ]
14211425 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1426+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14221427 #[ inline]
1423- pub fn algebraic_rem ( self , rhs : f128 ) -> f128 {
1428+ pub const fn algebraic_rem ( self , rhs : f128 ) -> f128 {
14241429 intrinsics:: frem_algebraic ( self , rhs)
14251430 }
14261431}
0 commit comments