@@ -1374,8 +1374,9 @@ impl f128 {
1374
1374
/// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
1375
1375
#[ must_use = "method returns a new number and does not mutate the original value" ]
1376
1376
#[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1377
+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
1377
1378
#[ inline]
1378
- pub fn algebraic_add ( self , rhs : f128 ) -> f128 {
1379
+ pub const fn algebraic_add ( self , rhs : f128 ) -> f128 {
1379
1380
intrinsics:: fadd_algebraic ( self , rhs)
1380
1381
}
1381
1382
@@ -1384,8 +1385,9 @@ impl f128 {
1384
1385
/// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
1385
1386
#[ must_use = "method returns a new number and does not mutate the original value" ]
1386
1387
#[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1388
+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
1387
1389
#[ inline]
1388
- pub fn algebraic_sub ( self , rhs : f128 ) -> f128 {
1390
+ pub const fn algebraic_sub ( self , rhs : f128 ) -> f128 {
1389
1391
intrinsics:: fsub_algebraic ( self , rhs)
1390
1392
}
1391
1393
@@ -1394,8 +1396,9 @@ impl f128 {
1394
1396
/// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
1395
1397
#[ must_use = "method returns a new number and does not mutate the original value" ]
1396
1398
#[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1399
+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
1397
1400
#[ inline]
1398
- pub fn algebraic_mul ( self , rhs : f128 ) -> f128 {
1401
+ pub const fn algebraic_mul ( self , rhs : f128 ) -> f128 {
1399
1402
intrinsics:: fmul_algebraic ( self , rhs)
1400
1403
}
1401
1404
@@ -1404,8 +1407,9 @@ impl f128 {
1404
1407
/// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
1405
1408
#[ must_use = "method returns a new number and does not mutate the original value" ]
1406
1409
#[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1410
+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
1407
1411
#[ inline]
1408
- pub fn algebraic_div ( self , rhs : f128 ) -> f128 {
1412
+ pub const fn algebraic_div ( self , rhs : f128 ) -> f128 {
1409
1413
intrinsics:: fdiv_algebraic ( self , rhs)
1410
1414
}
1411
1415
@@ -1414,8 +1418,9 @@ impl f128 {
1414
1418
/// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
1415
1419
#[ must_use = "method returns a new number and does not mutate the original value" ]
1416
1420
#[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1421
+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
1417
1422
#[ inline]
1418
- pub fn algebraic_rem ( self , rhs : f128 ) -> f128 {
1423
+ pub const fn algebraic_rem ( self , rhs : f128 ) -> f128 {
1419
1424
intrinsics:: frem_algebraic ( self , rhs)
1420
1425
}
1421
1426
}
0 commit comments