@@ -1382,8 +1382,9 @@ impl f128 {
13821382 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13831383 #[ must_use = "method returns a new number and does not mutate the original value" ]
13841384 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1385+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13851386 #[ inline]
1386- pub fn algebraic_add ( self , rhs : f128 ) -> f128 {
1387+ pub const fn algebraic_add ( self , rhs : f128 ) -> f128 {
13871388 intrinsics:: fadd_algebraic ( self , rhs)
13881389 }
13891390
@@ -1392,8 +1393,9 @@ impl f128 {
13921393 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13931394 #[ must_use = "method returns a new number and does not mutate the original value" ]
13941395 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1396+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13951397 #[ inline]
1396- pub fn algebraic_sub ( self , rhs : f128 ) -> f128 {
1398+ pub const fn algebraic_sub ( self , rhs : f128 ) -> f128 {
13971399 intrinsics:: fsub_algebraic ( self , rhs)
13981400 }
13991401
@@ -1402,8 +1404,9 @@ impl f128 {
14021404 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14031405 #[ must_use = "method returns a new number and does not mutate the original value" ]
14041406 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1407+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14051408 #[ inline]
1406- pub fn algebraic_mul ( self , rhs : f128 ) -> f128 {
1409+ pub const fn algebraic_mul ( self , rhs : f128 ) -> f128 {
14071410 intrinsics:: fmul_algebraic ( self , rhs)
14081411 }
14091412
@@ -1412,8 +1415,9 @@ impl f128 {
14121415 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14131416 #[ must_use = "method returns a new number and does not mutate the original value" ]
14141417 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1418+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14151419 #[ inline]
1416- pub fn algebraic_div ( self , rhs : f128 ) -> f128 {
1420+ pub const fn algebraic_div ( self , rhs : f128 ) -> f128 {
14171421 intrinsics:: fdiv_algebraic ( self , rhs)
14181422 }
14191423
@@ -1422,8 +1426,9 @@ impl f128 {
14221426 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14231427 #[ must_use = "method returns a new number and does not mutate the original value" ]
14241428 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1429+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14251430 #[ inline]
1426- pub fn algebraic_rem ( self , rhs : f128 ) -> f128 {
1431+ pub const fn algebraic_rem ( self , rhs : f128 ) -> f128 {
14271432 intrinsics:: frem_algebraic ( self , rhs)
14281433 }
14291434}
0 commit comments