@@ -2186,86 +2186,86 @@ pub unsafe fn fmuladdf128(a: f128, b: f128, c: f128) -> f128;
21862186/// [`f16::floor`](../../std/primitive.f16.html#method.floor)
21872187#[ rustc_intrinsic]
21882188#[ rustc_nounwind]
2189- pub unsafe fn floorf16 ( x : f16 ) -> f16 ;
2189+ pub const unsafe fn floorf16 ( x : f16 ) -> f16 ;
21902190/// Returns the largest integer less than or equal to an `f32`.
21912191///
21922192/// The stabilized version of this intrinsic is
21932193/// [`f32::floor`](../../std/primitive.f32.html#method.floor)
21942194#[ rustc_intrinsic]
21952195#[ rustc_nounwind]
2196- pub unsafe fn floorf32 ( x : f32 ) -> f32 ;
2196+ pub const unsafe fn floorf32 ( x : f32 ) -> f32 ;
21972197/// Returns the largest integer less than or equal to an `f64`.
21982198///
21992199/// The stabilized version of this intrinsic is
22002200/// [`f64::floor`](../../std/primitive.f64.html#method.floor)
22012201#[ rustc_intrinsic]
22022202#[ rustc_nounwind]
2203- pub unsafe fn floorf64 ( x : f64 ) -> f64 ;
2203+ pub const unsafe fn floorf64 ( x : f64 ) -> f64 ;
22042204/// Returns the largest integer less than or equal to an `f128`.
22052205///
22062206/// The stabilized version of this intrinsic is
22072207/// [`f128::floor`](../../std/primitive.f128.html#method.floor)
22082208#[ rustc_intrinsic]
22092209#[ rustc_nounwind]
2210- pub unsafe fn floorf128 ( x : f128 ) -> f128 ;
2210+ pub const unsafe fn floorf128 ( x : f128 ) -> f128 ;
22112211
22122212/// Returns the smallest integer greater than or equal to an `f16`.
22132213///
22142214/// The stabilized version of this intrinsic is
22152215/// [`f16::ceil`](../../std/primitive.f16.html#method.ceil)
22162216#[ rustc_intrinsic]
22172217#[ rustc_nounwind]
2218- pub unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2218+ pub const unsafe fn ceilf16 ( x : f16 ) -> f16 ;
22192219/// Returns the smallest integer greater than or equal to an `f32`.
22202220///
22212221/// The stabilized version of this intrinsic is
22222222/// [`f32::ceil`](../../std/primitive.f32.html#method.ceil)
22232223#[ rustc_intrinsic]
22242224#[ rustc_nounwind]
2225- pub unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2225+ pub const unsafe fn ceilf32 ( x : f32 ) -> f32 ;
22262226/// Returns the smallest integer greater than or equal to an `f64`.
22272227///
22282228/// The stabilized version of this intrinsic is
22292229/// [`f64::ceil`](../../std/primitive.f64.html#method.ceil)
22302230#[ rustc_intrinsic]
22312231#[ rustc_nounwind]
2232- pub unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2232+ pub const unsafe fn ceilf64 ( x : f64 ) -> f64 ;
22332233/// Returns the smallest integer greater than or equal to an `f128`.
22342234///
22352235/// The stabilized version of this intrinsic is
22362236/// [`f128::ceil`](../../std/primitive.f128.html#method.ceil)
22372237#[ rustc_intrinsic]
22382238#[ rustc_nounwind]
2239- pub unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2239+ pub const unsafe fn ceilf128 ( x : f128 ) -> f128 ;
22402240
22412241/// Returns the integer part of an `f16`.
22422242///
22432243/// The stabilized version of this intrinsic is
22442244/// [`f16::trunc`](../../std/primitive.f16.html#method.trunc)
22452245#[ rustc_intrinsic]
22462246#[ rustc_nounwind]
2247- pub unsafe fn truncf16 ( x : f16 ) -> f16 ;
2247+ pub const unsafe fn truncf16 ( x : f16 ) -> f16 ;
22482248/// Returns the integer part of an `f32`.
22492249///
22502250/// The stabilized version of this intrinsic is
22512251/// [`f32::trunc`](../../std/primitive.f32.html#method.trunc)
22522252#[ rustc_intrinsic]
22532253#[ rustc_nounwind]
2254- pub unsafe fn truncf32 ( x : f32 ) -> f32 ;
2254+ pub const unsafe fn truncf32 ( x : f32 ) -> f32 ;
22552255/// Returns the integer part of an `f64`.
22562256///
22572257/// The stabilized version of this intrinsic is
22582258/// [`f64::trunc`](../../std/primitive.f64.html#method.trunc)
22592259#[ rustc_intrinsic]
22602260#[ rustc_nounwind]
2261- pub unsafe fn truncf64 ( x : f64 ) -> f64 ;
2261+ pub const unsafe fn truncf64 ( x : f64 ) -> f64 ;
22622262/// Returns the integer part of an `f128`.
22632263///
22642264/// The stabilized version of this intrinsic is
22652265/// [`f128::trunc`](../../std/primitive.f128.html#method.trunc)
22662266#[ rustc_intrinsic]
22672267#[ rustc_nounwind]
2268- pub unsafe fn truncf128 ( x : f128 ) -> f128 ;
2268+ pub const unsafe fn truncf128 ( x : f128 ) -> f128 ;
22692269
22702270/// Returns the nearest integer to an `f16`. Rounds half-way cases to the number with an even
22712271/// least significant digit.
@@ -2274,7 +2274,7 @@ pub unsafe fn truncf128(x: f128) -> f128;
22742274/// [`f16::round_ties_even`](../../std/primitive.f16.html#method.round_ties_even)
22752275#[ rustc_intrinsic]
22762276#[ rustc_nounwind]
2277- pub fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2277+ pub const fn round_ties_even_f16 ( x : f16 ) -> f16 ;
22782278
22792279/// Returns the nearest integer to an `f32`. Rounds half-way cases to the number with an even
22802280/// least significant digit.
@@ -2283,7 +2283,7 @@ pub fn round_ties_even_f16(x: f16) -> f16;
22832283/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
22842284#[ rustc_intrinsic]
22852285#[ rustc_nounwind]
2286- pub fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2286+ pub const fn round_ties_even_f32 ( x : f32 ) -> f32 ;
22872287
22882288/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
22892289/// least significant digit.
@@ -2292,7 +2292,7 @@ pub fn round_ties_even_f32(x: f32) -> f32;
22922292/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)
22932293#[ rustc_intrinsic]
22942294#[ rustc_nounwind]
2295- pub fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2295+ pub const fn round_ties_even_f64 ( x : f64 ) -> f64 ;
22962296
22972297/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
22982298/// least significant digit.
@@ -2301,36 +2301,36 @@ pub fn round_ties_even_f64(x: f64) -> f64;
23012301/// [`f128::round_ties_even`](../../std/primitive.f128.html#method.round_ties_even)
23022302#[ rustc_intrinsic]
23032303#[ rustc_nounwind]
2304- pub fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2304+ pub const fn round_ties_even_f128 ( x : f128 ) -> f128 ;
23052305
23062306/// Returns the nearest integer to an `f16`. Rounds half-way cases away from zero.
23072307///
23082308/// The stabilized version of this intrinsic is
23092309/// [`f16::round`](../../std/primitive.f16.html#method.round)
23102310#[ rustc_intrinsic]
23112311#[ rustc_nounwind]
2312- pub unsafe fn roundf16 ( x : f16 ) -> f16 ;
2312+ pub const unsafe fn roundf16 ( x : f16 ) -> f16 ;
23132313/// Returns the nearest integer to an `f32`. Rounds half-way cases away from zero.
23142314///
23152315/// The stabilized version of this intrinsic is
23162316/// [`f32::round`](../../std/primitive.f32.html#method.round)
23172317#[ rustc_intrinsic]
23182318#[ rustc_nounwind]
2319- pub unsafe fn roundf32 ( x : f32 ) -> f32 ;
2319+ pub const unsafe fn roundf32 ( x : f32 ) -> f32 ;
23202320/// Returns the nearest integer to an `f64`. Rounds half-way cases away from zero.
23212321///
23222322/// The stabilized version of this intrinsic is
23232323/// [`f64::round`](../../std/primitive.f64.html#method.round)
23242324#[ rustc_intrinsic]
23252325#[ rustc_nounwind]
2326- pub unsafe fn roundf64 ( x : f64 ) -> f64 ;
2326+ pub const unsafe fn roundf64 ( x : f64 ) -> f64 ;
23272327/// Returns the nearest integer to an `f128`. Rounds half-way cases away from zero.
23282328///
23292329/// The stabilized version of this intrinsic is
23302330/// [`f128::round`](../../std/primitive.f128.html#method.round)
23312331#[ rustc_intrinsic]
23322332#[ rustc_nounwind]
2333- pub unsafe fn roundf128 ( x : f128 ) -> f128 ;
2333+ pub const unsafe fn roundf128 ( x : f128 ) -> f128 ;
23342334
23352335/// Float addition that allows optimizations based on algebraic rules.
23362336/// May assume inputs are finite.
0 commit comments