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