@@ -2186,86 +2186,86 @@ pub unsafe fn fmuladdf128(a: f128, b: f128, c: f128) -> f128;
2186
2186
/// [`f16::floor`](../../std/primitive.f16.html#method.floor)
2187
2187
#[ rustc_intrinsic]
2188
2188
#[ rustc_nounwind]
2189
- pub unsafe fn floorf16 ( x : f16 ) -> f16 ;
2189
+ pub const unsafe fn floorf16 ( x : f16 ) -> f16 ;
2190
2190
/// Returns the largest integer less than or equal to an `f32`.
2191
2191
///
2192
2192
/// The stabilized version of this intrinsic is
2193
2193
/// [`f32::floor`](../../std/primitive.f32.html#method.floor)
2194
2194
#[ rustc_intrinsic]
2195
2195
#[ rustc_nounwind]
2196
- pub unsafe fn floorf32 ( x : f32 ) -> f32 ;
2196
+ pub const unsafe fn floorf32 ( x : f32 ) -> f32 ;
2197
2197
/// Returns the largest integer less than or equal to an `f64`.
2198
2198
///
2199
2199
/// The stabilized version of this intrinsic is
2200
2200
/// [`f64::floor`](../../std/primitive.f64.html#method.floor)
2201
2201
#[ rustc_intrinsic]
2202
2202
#[ rustc_nounwind]
2203
- pub unsafe fn floorf64 ( x : f64 ) -> f64 ;
2203
+ pub const unsafe fn floorf64 ( x : f64 ) -> f64 ;
2204
2204
/// Returns the largest integer less than or equal to an `f128`.
2205
2205
///
2206
2206
/// The stabilized version of this intrinsic is
2207
2207
/// [`f128::floor`](../../std/primitive.f128.html#method.floor)
2208
2208
#[ rustc_intrinsic]
2209
2209
#[ rustc_nounwind]
2210
- pub unsafe fn floorf128 ( x : f128 ) -> f128 ;
2210
+ pub const unsafe fn floorf128 ( x : f128 ) -> f128 ;
2211
2211
2212
2212
/// Returns the smallest integer greater than or equal to an `f16`.
2213
2213
///
2214
2214
/// The stabilized version of this intrinsic is
2215
2215
/// [`f16::ceil`](../../std/primitive.f16.html#method.ceil)
2216
2216
#[ rustc_intrinsic]
2217
2217
#[ rustc_nounwind]
2218
- pub unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2218
+ pub const unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2219
2219
/// Returns the smallest integer greater than or equal to an `f32`.
2220
2220
///
2221
2221
/// The stabilized version of this intrinsic is
2222
2222
/// [`f32::ceil`](../../std/primitive.f32.html#method.ceil)
2223
2223
#[ rustc_intrinsic]
2224
2224
#[ rustc_nounwind]
2225
- pub unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2225
+ pub const unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2226
2226
/// Returns the smallest integer greater than or equal to an `f64`.
2227
2227
///
2228
2228
/// The stabilized version of this intrinsic is
2229
2229
/// [`f64::ceil`](../../std/primitive.f64.html#method.ceil)
2230
2230
#[ rustc_intrinsic]
2231
2231
#[ rustc_nounwind]
2232
- pub unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2232
+ pub const unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2233
2233
/// Returns the smallest integer greater than or equal to an `f128`.
2234
2234
///
2235
2235
/// The stabilized version of this intrinsic is
2236
2236
/// [`f128::ceil`](../../std/primitive.f128.html#method.ceil)
2237
2237
#[ rustc_intrinsic]
2238
2238
#[ rustc_nounwind]
2239
- pub unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2239
+ pub const unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2240
2240
2241
2241
/// Returns the integer part of an `f16`.
2242
2242
///
2243
2243
/// The stabilized version of this intrinsic is
2244
2244
/// [`f16::trunc`](../../std/primitive.f16.html#method.trunc)
2245
2245
#[ rustc_intrinsic]
2246
2246
#[ rustc_nounwind]
2247
- pub unsafe fn truncf16 ( x : f16 ) -> f16 ;
2247
+ pub const unsafe fn truncf16 ( x : f16 ) -> f16 ;
2248
2248
/// Returns the integer part of an `f32`.
2249
2249
///
2250
2250
/// The stabilized version of this intrinsic is
2251
2251
/// [`f32::trunc`](../../std/primitive.f32.html#method.trunc)
2252
2252
#[ rustc_intrinsic]
2253
2253
#[ rustc_nounwind]
2254
- pub unsafe fn truncf32 ( x : f32 ) -> f32 ;
2254
+ pub const unsafe fn truncf32 ( x : f32 ) -> f32 ;
2255
2255
/// Returns the integer part of an `f64`.
2256
2256
///
2257
2257
/// The stabilized version of this intrinsic is
2258
2258
/// [`f64::trunc`](../../std/primitive.f64.html#method.trunc)
2259
2259
#[ rustc_intrinsic]
2260
2260
#[ rustc_nounwind]
2261
- pub unsafe fn truncf64 ( x : f64 ) -> f64 ;
2261
+ pub const unsafe fn truncf64 ( x : f64 ) -> f64 ;
2262
2262
/// Returns the integer part of an `f128`.
2263
2263
///
2264
2264
/// The stabilized version of this intrinsic is
2265
2265
/// [`f128::trunc`](../../std/primitive.f128.html#method.trunc)
2266
2266
#[ rustc_intrinsic]
2267
2267
#[ rustc_nounwind]
2268
- pub unsafe fn truncf128 ( x : f128 ) -> f128 ;
2268
+ pub const unsafe fn truncf128 ( x : f128 ) -> f128 ;
2269
2269
2270
2270
/// Returns the nearest integer to an `f16`. Rounds half-way cases to the number with an even
2271
2271
/// least significant digit.
@@ -2274,7 +2274,7 @@ pub unsafe fn truncf128(x: f128) -> f128;
2274
2274
/// [`f16::round_ties_even`](../../std/primitive.f16.html#method.round_ties_even)
2275
2275
#[ rustc_intrinsic]
2276
2276
#[ rustc_nounwind]
2277
- pub fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2277
+ pub const fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2278
2278
2279
2279
/// Returns the nearest integer to an `f32`. Rounds half-way cases to the number with an even
2280
2280
/// least significant digit.
@@ -2283,7 +2283,7 @@ pub fn round_ties_even_f16(x: f16) -> f16;
2283
2283
/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
2284
2284
#[ rustc_intrinsic]
2285
2285
#[ rustc_nounwind]
2286
- pub fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2286
+ pub const fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2287
2287
2288
2288
/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
2289
2289
/// least significant digit.
@@ -2292,7 +2292,7 @@ pub fn round_ties_even_f32(x: f32) -> f32;
2292
2292
/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)
2293
2293
#[ rustc_intrinsic]
2294
2294
#[ rustc_nounwind]
2295
- pub fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2295
+ pub const fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2296
2296
2297
2297
/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
2298
2298
/// least significant digit.
@@ -2301,36 +2301,36 @@ pub fn round_ties_even_f64(x: f64) -> f64;
2301
2301
/// [`f128::round_ties_even`](../../std/primitive.f128.html#method.round_ties_even)
2302
2302
#[ rustc_intrinsic]
2303
2303
#[ rustc_nounwind]
2304
- pub fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2304
+ pub const fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2305
2305
2306
2306
/// Returns the nearest integer to an `f16`. Rounds half-way cases away from zero.
2307
2307
///
2308
2308
/// The stabilized version of this intrinsic is
2309
2309
/// [`f16::round`](../../std/primitive.f16.html#method.round)
2310
2310
#[ rustc_intrinsic]
2311
2311
#[ rustc_nounwind]
2312
- pub unsafe fn roundf16 ( x : f16 ) -> f16 ;
2312
+ pub const unsafe fn roundf16 ( x : f16 ) -> f16 ;
2313
2313
/// Returns the nearest integer to an `f32`. Rounds half-way cases away from zero.
2314
2314
///
2315
2315
/// The stabilized version of this intrinsic is
2316
2316
/// [`f32::round`](../../std/primitive.f32.html#method.round)
2317
2317
#[ rustc_intrinsic]
2318
2318
#[ rustc_nounwind]
2319
- pub unsafe fn roundf32 ( x : f32 ) -> f32 ;
2319
+ pub const unsafe fn roundf32 ( x : f32 ) -> f32 ;
2320
2320
/// Returns the nearest integer to an `f64`. Rounds half-way cases away from zero.
2321
2321
///
2322
2322
/// The stabilized version of this intrinsic is
2323
2323
/// [`f64::round`](../../std/primitive.f64.html#method.round)
2324
2324
#[ rustc_intrinsic]
2325
2325
#[ rustc_nounwind]
2326
- pub unsafe fn roundf64 ( x : f64 ) -> f64 ;
2326
+ pub const unsafe fn roundf64 ( x : f64 ) -> f64 ;
2327
2327
/// Returns the nearest integer to an `f128`. Rounds half-way cases away from zero.
2328
2328
///
2329
2329
/// The stabilized version of this intrinsic is
2330
2330
/// [`f128::round`](../../std/primitive.f128.html#method.round)
2331
2331
#[ rustc_intrinsic]
2332
2332
#[ rustc_nounwind]
2333
- pub unsafe fn roundf128 ( x : f128 ) -> f128 ;
2333
+ pub const unsafe fn roundf128 ( x : f128 ) -> f128 ;
2334
2334
2335
2335
/// Float addition that allows optimizations based on algebraic rules.
2336
2336
/// May assume inputs are finite.
0 commit comments