@@ -2240,86 +2240,86 @@ pub unsafe fn fmuladdf128(a: f128, b: f128, c: f128) -> f128;
2240
2240
/// [`f16::floor`](../../std/primitive.f16.html#method.floor)
2241
2241
#[ rustc_intrinsic]
2242
2242
#[ rustc_nounwind]
2243
- pub unsafe fn floorf16 ( x : f16 ) -> f16 ;
2243
+ pub const unsafe fn floorf16 ( x : f16 ) -> f16 ;
2244
2244
/// Returns the largest integer less than or equal to an `f32`.
2245
2245
///
2246
2246
/// The stabilized version of this intrinsic is
2247
2247
/// [`f32::floor`](../../std/primitive.f32.html#method.floor)
2248
2248
#[ rustc_intrinsic]
2249
2249
#[ rustc_nounwind]
2250
- pub unsafe fn floorf32 ( x : f32 ) -> f32 ;
2250
+ pub const unsafe fn floorf32 ( x : f32 ) -> f32 ;
2251
2251
/// Returns the largest integer less than or equal to an `f64`.
2252
2252
///
2253
2253
/// The stabilized version of this intrinsic is
2254
2254
/// [`f64::floor`](../../std/primitive.f64.html#method.floor)
2255
2255
#[ rustc_intrinsic]
2256
2256
#[ rustc_nounwind]
2257
- pub unsafe fn floorf64 ( x : f64 ) -> f64 ;
2257
+ pub const unsafe fn floorf64 ( x : f64 ) -> f64 ;
2258
2258
/// Returns the largest integer less than or equal to an `f128`.
2259
2259
///
2260
2260
/// The stabilized version of this intrinsic is
2261
2261
/// [`f128::floor`](../../std/primitive.f128.html#method.floor)
2262
2262
#[ rustc_intrinsic]
2263
2263
#[ rustc_nounwind]
2264
- pub unsafe fn floorf128 ( x : f128 ) -> f128 ;
2264
+ pub const unsafe fn floorf128 ( x : f128 ) -> f128 ;
2265
2265
2266
2266
/// Returns the smallest integer greater than or equal to an `f16`.
2267
2267
///
2268
2268
/// The stabilized version of this intrinsic is
2269
2269
/// [`f16::ceil`](../../std/primitive.f16.html#method.ceil)
2270
2270
#[ rustc_intrinsic]
2271
2271
#[ rustc_nounwind]
2272
- pub unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2272
+ pub const unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2273
2273
/// Returns the smallest integer greater than or equal to an `f32`.
2274
2274
///
2275
2275
/// The stabilized version of this intrinsic is
2276
2276
/// [`f32::ceil`](../../std/primitive.f32.html#method.ceil)
2277
2277
#[ rustc_intrinsic]
2278
2278
#[ rustc_nounwind]
2279
- pub unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2279
+ pub const unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2280
2280
/// Returns the smallest integer greater than or equal to an `f64`.
2281
2281
///
2282
2282
/// The stabilized version of this intrinsic is
2283
2283
/// [`f64::ceil`](../../std/primitive.f64.html#method.ceil)
2284
2284
#[ rustc_intrinsic]
2285
2285
#[ rustc_nounwind]
2286
- pub unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2286
+ pub const unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2287
2287
/// Returns the smallest integer greater than or equal to an `f128`.
2288
2288
///
2289
2289
/// The stabilized version of this intrinsic is
2290
2290
/// [`f128::ceil`](../../std/primitive.f128.html#method.ceil)
2291
2291
#[ rustc_intrinsic]
2292
2292
#[ rustc_nounwind]
2293
- pub unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2293
+ pub const unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2294
2294
2295
2295
/// Returns the integer part of an `f16`.
2296
2296
///
2297
2297
/// The stabilized version of this intrinsic is
2298
2298
/// [`f16::trunc`](../../std/primitive.f16.html#method.trunc)
2299
2299
#[ rustc_intrinsic]
2300
2300
#[ rustc_nounwind]
2301
- pub unsafe fn truncf16 ( x : f16 ) -> f16 ;
2301
+ pub const unsafe fn truncf16 ( x : f16 ) -> f16 ;
2302
2302
/// Returns the integer part of an `f32`.
2303
2303
///
2304
2304
/// The stabilized version of this intrinsic is
2305
2305
/// [`f32::trunc`](../../std/primitive.f32.html#method.trunc)
2306
2306
#[ rustc_intrinsic]
2307
2307
#[ rustc_nounwind]
2308
- pub unsafe fn truncf32 ( x : f32 ) -> f32 ;
2308
+ pub const unsafe fn truncf32 ( x : f32 ) -> f32 ;
2309
2309
/// Returns the integer part of an `f64`.
2310
2310
///
2311
2311
/// The stabilized version of this intrinsic is
2312
2312
/// [`f64::trunc`](../../std/primitive.f64.html#method.trunc)
2313
2313
#[ rustc_intrinsic]
2314
2314
#[ rustc_nounwind]
2315
- pub unsafe fn truncf64 ( x : f64 ) -> f64 ;
2315
+ pub const unsafe fn truncf64 ( x : f64 ) -> f64 ;
2316
2316
/// Returns the integer part of an `f128`.
2317
2317
///
2318
2318
/// The stabilized version of this intrinsic is
2319
2319
/// [`f128::trunc`](../../std/primitive.f128.html#method.trunc)
2320
2320
#[ rustc_intrinsic]
2321
2321
#[ rustc_nounwind]
2322
- pub unsafe fn truncf128 ( x : f128 ) -> f128 ;
2322
+ pub const unsafe fn truncf128 ( x : f128 ) -> f128 ;
2323
2323
2324
2324
/// Returns the nearest integer to an `f16`. Rounds half-way cases to the number with an even
2325
2325
/// least significant digit.
@@ -2328,7 +2328,7 @@ pub unsafe fn truncf128(x: f128) -> f128;
2328
2328
/// [`f16::round_ties_even`](../../std/primitive.f16.html#method.round_ties_even)
2329
2329
#[ rustc_intrinsic]
2330
2330
#[ rustc_nounwind]
2331
- pub fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2331
+ pub const fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2332
2332
2333
2333
/// Returns the nearest integer to an `f32`. Rounds half-way cases to the number with an even
2334
2334
/// least significant digit.
@@ -2337,7 +2337,7 @@ pub fn round_ties_even_f16(x: f16) -> f16;
2337
2337
/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
2338
2338
#[ rustc_intrinsic]
2339
2339
#[ rustc_nounwind]
2340
- pub fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2340
+ pub const fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2341
2341
2342
2342
/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
2343
2343
/// least significant digit.
@@ -2346,7 +2346,7 @@ pub fn round_ties_even_f32(x: f32) -> f32;
2346
2346
/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)
2347
2347
#[ rustc_intrinsic]
2348
2348
#[ rustc_nounwind]
2349
- pub fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2349
+ pub const fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2350
2350
2351
2351
/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
2352
2352
/// least significant digit.
@@ -2355,36 +2355,36 @@ pub fn round_ties_even_f64(x: f64) -> f64;
2355
2355
/// [`f128::round_ties_even`](../../std/primitive.f128.html#method.round_ties_even)
2356
2356
#[ rustc_intrinsic]
2357
2357
#[ rustc_nounwind]
2358
- pub fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2358
+ pub const fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2359
2359
2360
2360
/// Returns the nearest integer to an `f16`. Rounds half-way cases away from zero.
2361
2361
///
2362
2362
/// The stabilized version of this intrinsic is
2363
2363
/// [`f16::round`](../../std/primitive.f16.html#method.round)
2364
2364
#[ rustc_intrinsic]
2365
2365
#[ rustc_nounwind]
2366
- pub unsafe fn roundf16 ( x : f16 ) -> f16 ;
2366
+ pub const unsafe fn roundf16 ( x : f16 ) -> f16 ;
2367
2367
/// Returns the nearest integer to an `f32`. Rounds half-way cases away from zero.
2368
2368
///
2369
2369
/// The stabilized version of this intrinsic is
2370
2370
/// [`f32::round`](../../std/primitive.f32.html#method.round)
2371
2371
#[ rustc_intrinsic]
2372
2372
#[ rustc_nounwind]
2373
- pub unsafe fn roundf32 ( x : f32 ) -> f32 ;
2373
+ pub const unsafe fn roundf32 ( x : f32 ) -> f32 ;
2374
2374
/// Returns the nearest integer to an `f64`. Rounds half-way cases away from zero.
2375
2375
///
2376
2376
/// The stabilized version of this intrinsic is
2377
2377
/// [`f64::round`](../../std/primitive.f64.html#method.round)
2378
2378
#[ rustc_intrinsic]
2379
2379
#[ rustc_nounwind]
2380
- pub unsafe fn roundf64 ( x : f64 ) -> f64 ;
2380
+ pub const unsafe fn roundf64 ( x : f64 ) -> f64 ;
2381
2381
/// Returns the nearest integer to an `f128`. Rounds half-way cases away from zero.
2382
2382
///
2383
2383
/// The stabilized version of this intrinsic is
2384
2384
/// [`f128::round`](../../std/primitive.f128.html#method.round)
2385
2385
#[ rustc_intrinsic]
2386
2386
#[ rustc_nounwind]
2387
- pub unsafe fn roundf128 ( x : f128 ) -> f128 ;
2387
+ pub const unsafe fn roundf128 ( x : f128 ) -> f128 ;
2388
2388
2389
2389
/// Float addition that allows optimizations based on algebraic rules.
2390
2390
/// May assume inputs are finite.
0 commit comments