@@ -1370,8 +1370,9 @@ impl f128 {
13701370 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13711371 #[ must_use = "method returns a new number and does not mutate the original value" ]
13721372 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1373+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13731374 #[ inline]
1374- pub fn algebraic_add ( self , rhs : f128 ) -> f128 {
1375+ pub const fn algebraic_add ( self , rhs : f128 ) -> f128 {
13751376 intrinsics:: fadd_algebraic ( self , rhs)
13761377 }
13771378
@@ -1380,8 +1381,9 @@ impl f128 {
13801381 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13811382 #[ must_use = "method returns a new number and does not mutate the original value" ]
13821383 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1384+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13831385 #[ inline]
1384- pub fn algebraic_sub ( self , rhs : f128 ) -> f128 {
1386+ pub const fn algebraic_sub ( self , rhs : f128 ) -> f128 {
13851387 intrinsics:: fsub_algebraic ( self , rhs)
13861388 }
13871389
@@ -1390,8 +1392,9 @@ impl f128 {
13901392 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
13911393 #[ must_use = "method returns a new number and does not mutate the original value" ]
13921394 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1395+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
13931396 #[ inline]
1394- pub fn algebraic_mul ( self , rhs : f128 ) -> f128 {
1397+ pub const fn algebraic_mul ( self , rhs : f128 ) -> f128 {
13951398 intrinsics:: fmul_algebraic ( self , rhs)
13961399 }
13971400
@@ -1400,8 +1403,9 @@ impl f128 {
14001403 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14011404 #[ must_use = "method returns a new number and does not mutate the original value" ]
14021405 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1406+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14031407 #[ inline]
1404- pub fn algebraic_div ( self , rhs : f128 ) -> f128 {
1408+ pub const fn algebraic_div ( self , rhs : f128 ) -> f128 {
14051409 intrinsics:: fdiv_algebraic ( self , rhs)
14061410 }
14071411
@@ -1410,8 +1414,9 @@ impl f128 {
14101414 /// See [algebraic operators](primitive@f32#algebraic-operators) for more info.
14111415 #[ must_use = "method returns a new number and does not mutate the original value" ]
14121416 #[ unstable( feature = "float_algebraic" , issue = "136469" ) ]
1417+ #[ rustc_const_unstable( feature = "float_algebraic" , issue = "136469" ) ]
14131418 #[ inline]
1414- pub fn algebraic_rem ( self , rhs : f128 ) -> f128 {
1419+ pub const fn algebraic_rem ( self , rhs : f128 ) -> f128 {
14151420 intrinsics:: frem_algebraic ( self , rhs)
14161421 }
14171422}
0 commit comments