@@ -2240,86 +2240,86 @@ pub unsafe fn fmuladdf128(a: f128, b: f128, c: f128) -> f128;
22402240/// [`f16::floor`](../../std/primitive.f16.html#method.floor)
22412241#[ rustc_intrinsic]
22422242#[ rustc_nounwind]
2243- pub unsafe fn floorf16 ( x : f16 ) -> f16 ;
2243+ pub const unsafe fn floorf16 ( x : f16 ) -> f16 ;
22442244/// Returns the largest integer less than or equal to an `f32`.
22452245///
22462246/// The stabilized version of this intrinsic is
22472247/// [`f32::floor`](../../std/primitive.f32.html#method.floor)
22482248#[ rustc_intrinsic]
22492249#[ rustc_nounwind]
2250- pub unsafe fn floorf32 ( x : f32 ) -> f32 ;
2250+ pub const unsafe fn floorf32 ( x : f32 ) -> f32 ;
22512251/// Returns the largest integer less than or equal to an `f64`.
22522252///
22532253/// The stabilized version of this intrinsic is
22542254/// [`f64::floor`](../../std/primitive.f64.html#method.floor)
22552255#[ rustc_intrinsic]
22562256#[ rustc_nounwind]
2257- pub unsafe fn floorf64 ( x : f64 ) -> f64 ;
2257+ pub const unsafe fn floorf64 ( x : f64 ) -> f64 ;
22582258/// Returns the largest integer less than or equal to an `f128`.
22592259///
22602260/// The stabilized version of this intrinsic is
22612261/// [`f128::floor`](../../std/primitive.f128.html#method.floor)
22622262#[ rustc_intrinsic]
22632263#[ rustc_nounwind]
2264- pub unsafe fn floorf128 ( x : f128 ) -> f128 ;
2264+ pub const unsafe fn floorf128 ( x : f128 ) -> f128 ;
22652265
22662266/// Returns the smallest integer greater than or equal to an `f16`.
22672267///
22682268/// The stabilized version of this intrinsic is
22692269/// [`f16::ceil`](../../std/primitive.f16.html#method.ceil)
22702270#[ rustc_intrinsic]
22712271#[ rustc_nounwind]
2272- pub unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2272+ pub const unsafe fn ceilf16 ( x : f16 ) -> f16 ;
22732273/// Returns the smallest integer greater than or equal to an `f32`.
22742274///
22752275/// The stabilized version of this intrinsic is
22762276/// [`f32::ceil`](../../std/primitive.f32.html#method.ceil)
22772277#[ rustc_intrinsic]
22782278#[ rustc_nounwind]
2279- pub unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2279+ pub const unsafe fn ceilf32 ( x : f32 ) -> f32 ;
22802280/// Returns the smallest integer greater than or equal to an `f64`.
22812281///
22822282/// The stabilized version of this intrinsic is
22832283/// [`f64::ceil`](../../std/primitive.f64.html#method.ceil)
22842284#[ rustc_intrinsic]
22852285#[ rustc_nounwind]
2286- pub unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2286+ pub const unsafe fn ceilf64 ( x : f64 ) -> f64 ;
22872287/// Returns the smallest integer greater than or equal to an `f128`.
22882288///
22892289/// The stabilized version of this intrinsic is
22902290/// [`f128::ceil`](../../std/primitive.f128.html#method.ceil)
22912291#[ rustc_intrinsic]
22922292#[ rustc_nounwind]
2293- pub unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2293+ pub const unsafe fn ceilf128 ( x : f128 ) -> f128 ;
22942294
22952295/// Returns the integer part of an `f16`.
22962296///
22972297/// The stabilized version of this intrinsic is
22982298/// [`f16::trunc`](../../std/primitive.f16.html#method.trunc)
22992299#[ rustc_intrinsic]
23002300#[ rustc_nounwind]
2301- pub unsafe fn truncf16 ( x : f16 ) -> f16 ;
2301+ pub const unsafe fn truncf16 ( x : f16 ) -> f16 ;
23022302/// Returns the integer part of an `f32`.
23032303///
23042304/// The stabilized version of this intrinsic is
23052305/// [`f32::trunc`](../../std/primitive.f32.html#method.trunc)
23062306#[ rustc_intrinsic]
23072307#[ rustc_nounwind]
2308- pub unsafe fn truncf32 ( x : f32 ) -> f32 ;
2308+ pub const unsafe fn truncf32 ( x : f32 ) -> f32 ;
23092309/// Returns the integer part of an `f64`.
23102310///
23112311/// The stabilized version of this intrinsic is
23122312/// [`f64::trunc`](../../std/primitive.f64.html#method.trunc)
23132313#[ rustc_intrinsic]
23142314#[ rustc_nounwind]
2315- pub unsafe fn truncf64 ( x : f64 ) -> f64 ;
2315+ pub const unsafe fn truncf64 ( x : f64 ) -> f64 ;
23162316/// Returns the integer part of an `f128`.
23172317///
23182318/// The stabilized version of this intrinsic is
23192319/// [`f128::trunc`](../../std/primitive.f128.html#method.trunc)
23202320#[ rustc_intrinsic]
23212321#[ rustc_nounwind]
2322- pub unsafe fn truncf128 ( x : f128 ) -> f128 ;
2322+ pub const unsafe fn truncf128 ( x : f128 ) -> f128 ;
23232323
23242324/// Returns the nearest integer to an `f16`. Rounds half-way cases to the number with an even
23252325/// least significant digit.
@@ -2328,7 +2328,7 @@ pub unsafe fn truncf128(x: f128) -> f128;
23282328/// [`f16::round_ties_even`](../../std/primitive.f16.html#method.round_ties_even)
23292329#[ rustc_intrinsic]
23302330#[ rustc_nounwind]
2331- pub fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2331+ pub const fn round_ties_even_f16 ( x : f16 ) -> f16 ;
23322332
23332333/// Returns the nearest integer to an `f32`. Rounds half-way cases to the number with an even
23342334/// least significant digit.
@@ -2337,7 +2337,7 @@ pub fn round_ties_even_f16(x: f16) -> f16;
23372337/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
23382338#[ rustc_intrinsic]
23392339#[ rustc_nounwind]
2340- pub fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2340+ pub const fn round_ties_even_f32 ( x : f32 ) -> f32 ;
23412341
23422342/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
23432343/// least significant digit.
@@ -2346,7 +2346,7 @@ pub fn round_ties_even_f32(x: f32) -> f32;
23462346/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)
23472347#[ rustc_intrinsic]
23482348#[ rustc_nounwind]
2349- pub fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2349+ pub const fn round_ties_even_f64 ( x : f64 ) -> f64 ;
23502350
23512351/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
23522352/// least significant digit.
@@ -2355,36 +2355,36 @@ pub fn round_ties_even_f64(x: f64) -> f64;
23552355/// [`f128::round_ties_even`](../../std/primitive.f128.html#method.round_ties_even)
23562356#[ rustc_intrinsic]
23572357#[ rustc_nounwind]
2358- pub fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2358+ pub const fn round_ties_even_f128 ( x : f128 ) -> f128 ;
23592359
23602360/// Returns the nearest integer to an `f16`. Rounds half-way cases away from zero.
23612361///
23622362/// The stabilized version of this intrinsic is
23632363/// [`f16::round`](../../std/primitive.f16.html#method.round)
23642364#[ rustc_intrinsic]
23652365#[ rustc_nounwind]
2366- pub unsafe fn roundf16 ( x : f16 ) -> f16 ;
2366+ pub const unsafe fn roundf16 ( x : f16 ) -> f16 ;
23672367/// Returns the nearest integer to an `f32`. Rounds half-way cases away from zero.
23682368///
23692369/// The stabilized version of this intrinsic is
23702370/// [`f32::round`](../../std/primitive.f32.html#method.round)
23712371#[ rustc_intrinsic]
23722372#[ rustc_nounwind]
2373- pub unsafe fn roundf32 ( x : f32 ) -> f32 ;
2373+ pub const unsafe fn roundf32 ( x : f32 ) -> f32 ;
23742374/// Returns the nearest integer to an `f64`. Rounds half-way cases away from zero.
23752375///
23762376/// The stabilized version of this intrinsic is
23772377/// [`f64::round`](../../std/primitive.f64.html#method.round)
23782378#[ rustc_intrinsic]
23792379#[ rustc_nounwind]
2380- pub unsafe fn roundf64 ( x : f64 ) -> f64 ;
2380+ pub const unsafe fn roundf64 ( x : f64 ) -> f64 ;
23812381/// Returns the nearest integer to an `f128`. Rounds half-way cases away from zero.
23822382///
23832383/// The stabilized version of this intrinsic is
23842384/// [`f128::round`](../../std/primitive.f128.html#method.round)
23852385#[ rustc_intrinsic]
23862386#[ rustc_nounwind]
2387- pub unsafe fn roundf128 ( x : f128 ) -> f128 ;
2387+ pub const unsafe fn roundf128 ( x : f128 ) -> f128 ;
23882388
23892389/// Float addition that allows optimizations based on algebraic rules.
23902390/// May assume inputs are finite.
0 commit comments