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