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