@@ -2212,86 +2212,86 @@ pub unsafe fn fmuladdf128(a: f128, b: f128, c: f128) -> f128;
2212
2212
/// [`f16::floor`](../../std/primitive.f16.html#method.floor)
2213
2213
#[ rustc_intrinsic]
2214
2214
#[ rustc_nounwind]
2215
- pub unsafe fn floorf16 ( x : f16 ) -> f16 ;
2215
+ pub const unsafe fn floorf16 ( x : f16 ) -> f16 ;
2216
2216
/// Returns the largest integer less than or equal to an `f32`.
2217
2217
///
2218
2218
/// The stabilized version of this intrinsic is
2219
2219
/// [`f32::floor`](../../std/primitive.f32.html#method.floor)
2220
2220
#[ rustc_intrinsic]
2221
2221
#[ rustc_nounwind]
2222
- pub unsafe fn floorf32 ( x : f32 ) -> f32 ;
2222
+ pub const unsafe fn floorf32 ( x : f32 ) -> f32 ;
2223
2223
/// Returns the largest integer less than or equal to an `f64`.
2224
2224
///
2225
2225
/// The stabilized version of this intrinsic is
2226
2226
/// [`f64::floor`](../../std/primitive.f64.html#method.floor)
2227
2227
#[ rustc_intrinsic]
2228
2228
#[ rustc_nounwind]
2229
- pub unsafe fn floorf64 ( x : f64 ) -> f64 ;
2229
+ pub const unsafe fn floorf64 ( x : f64 ) -> f64 ;
2230
2230
/// Returns the largest integer less than or equal to an `f128`.
2231
2231
///
2232
2232
/// The stabilized version of this intrinsic is
2233
2233
/// [`f128::floor`](../../std/primitive.f128.html#method.floor)
2234
2234
#[ rustc_intrinsic]
2235
2235
#[ rustc_nounwind]
2236
- pub unsafe fn floorf128 ( x : f128 ) -> f128 ;
2236
+ pub const unsafe fn floorf128 ( x : f128 ) -> f128 ;
2237
2237
2238
2238
/// Returns the smallest integer greater than or equal to an `f16`.
2239
2239
///
2240
2240
/// The stabilized version of this intrinsic is
2241
2241
/// [`f16::ceil`](../../std/primitive.f16.html#method.ceil)
2242
2242
#[ rustc_intrinsic]
2243
2243
#[ rustc_nounwind]
2244
- pub unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2244
+ pub const unsafe fn ceilf16 ( x : f16 ) -> f16 ;
2245
2245
/// Returns the smallest integer greater than or equal to an `f32`.
2246
2246
///
2247
2247
/// The stabilized version of this intrinsic is
2248
2248
/// [`f32::ceil`](../../std/primitive.f32.html#method.ceil)
2249
2249
#[ rustc_intrinsic]
2250
2250
#[ rustc_nounwind]
2251
- pub unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2251
+ pub const unsafe fn ceilf32 ( x : f32 ) -> f32 ;
2252
2252
/// Returns the smallest integer greater than or equal to an `f64`.
2253
2253
///
2254
2254
/// The stabilized version of this intrinsic is
2255
2255
/// [`f64::ceil`](../../std/primitive.f64.html#method.ceil)
2256
2256
#[ rustc_intrinsic]
2257
2257
#[ rustc_nounwind]
2258
- pub unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2258
+ pub const unsafe fn ceilf64 ( x : f64 ) -> f64 ;
2259
2259
/// Returns the smallest integer greater than or equal to an `f128`.
2260
2260
///
2261
2261
/// The stabilized version of this intrinsic is
2262
2262
/// [`f128::ceil`](../../std/primitive.f128.html#method.ceil)
2263
2263
#[ rustc_intrinsic]
2264
2264
#[ rustc_nounwind]
2265
- pub unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2265
+ pub const unsafe fn ceilf128 ( x : f128 ) -> f128 ;
2266
2266
2267
2267
/// Returns the integer part of an `f16`.
2268
2268
///
2269
2269
/// The stabilized version of this intrinsic is
2270
2270
/// [`f16::trunc`](../../std/primitive.f16.html#method.trunc)
2271
2271
#[ rustc_intrinsic]
2272
2272
#[ rustc_nounwind]
2273
- pub unsafe fn truncf16 ( x : f16 ) -> f16 ;
2273
+ pub const unsafe fn truncf16 ( x : f16 ) -> f16 ;
2274
2274
/// Returns the integer part of an `f32`.
2275
2275
///
2276
2276
/// The stabilized version of this intrinsic is
2277
2277
/// [`f32::trunc`](../../std/primitive.f32.html#method.trunc)
2278
2278
#[ rustc_intrinsic]
2279
2279
#[ rustc_nounwind]
2280
- pub unsafe fn truncf32 ( x : f32 ) -> f32 ;
2280
+ pub const unsafe fn truncf32 ( x : f32 ) -> f32 ;
2281
2281
/// Returns the integer part of an `f64`.
2282
2282
///
2283
2283
/// The stabilized version of this intrinsic is
2284
2284
/// [`f64::trunc`](../../std/primitive.f64.html#method.trunc)
2285
2285
#[ rustc_intrinsic]
2286
2286
#[ rustc_nounwind]
2287
- pub unsafe fn truncf64 ( x : f64 ) -> f64 ;
2287
+ pub const unsafe fn truncf64 ( x : f64 ) -> f64 ;
2288
2288
/// Returns the integer part of an `f128`.
2289
2289
///
2290
2290
/// The stabilized version of this intrinsic is
2291
2291
/// [`f128::trunc`](../../std/primitive.f128.html#method.trunc)
2292
2292
#[ rustc_intrinsic]
2293
2293
#[ rustc_nounwind]
2294
- pub unsafe fn truncf128 ( x : f128 ) -> f128 ;
2294
+ pub const unsafe fn truncf128 ( x : f128 ) -> f128 ;
2295
2295
2296
2296
/// Returns the nearest integer to an `f16`. Rounds half-way cases to the number with an even
2297
2297
/// least significant digit.
@@ -2300,7 +2300,7 @@ pub unsafe fn truncf128(x: f128) -> f128;
2300
2300
/// [`f16::round_ties_even`](../../std/primitive.f16.html#method.round_ties_even)
2301
2301
#[ rustc_intrinsic]
2302
2302
#[ rustc_nounwind]
2303
- pub fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2303
+ pub const fn round_ties_even_f16 ( x : f16 ) -> f16 ;
2304
2304
2305
2305
/// Returns the nearest integer to an `f32`. Rounds half-way cases to the number with an even
2306
2306
/// least significant digit.
@@ -2309,7 +2309,7 @@ pub fn round_ties_even_f16(x: f16) -> f16;
2309
2309
/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
2310
2310
#[ rustc_intrinsic]
2311
2311
#[ rustc_nounwind]
2312
- pub fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2312
+ pub const fn round_ties_even_f32 ( x : f32 ) -> f32 ;
2313
2313
2314
2314
/// Returns the nearest integer to an `f64`. Rounds half-way cases to the number with an even
2315
2315
/// least significant digit.
@@ -2318,7 +2318,7 @@ pub fn round_ties_even_f32(x: f32) -> f32;
2318
2318
/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)
2319
2319
#[ rustc_intrinsic]
2320
2320
#[ rustc_nounwind]
2321
- pub fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2321
+ pub const fn round_ties_even_f64 ( x : f64 ) -> f64 ;
2322
2322
2323
2323
/// Returns the nearest integer to an `f128`. Rounds half-way cases to the number with an even
2324
2324
/// least significant digit.
@@ -2327,36 +2327,36 @@ pub fn round_ties_even_f64(x: f64) -> f64;
2327
2327
/// [`f128::round_ties_even`](../../std/primitive.f128.html#method.round_ties_even)
2328
2328
#[ rustc_intrinsic]
2329
2329
#[ rustc_nounwind]
2330
- pub fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2330
+ pub const fn round_ties_even_f128 ( x : f128 ) -> f128 ;
2331
2331
2332
2332
/// Returns the nearest integer to an `f16`. Rounds half-way cases away from zero.
2333
2333
///
2334
2334
/// The stabilized version of this intrinsic is
2335
2335
/// [`f16::round`](../../std/primitive.f16.html#method.round)
2336
2336
#[ rustc_intrinsic]
2337
2337
#[ rustc_nounwind]
2338
- pub unsafe fn roundf16 ( x : f16 ) -> f16 ;
2338
+ pub const unsafe fn roundf16 ( x : f16 ) -> f16 ;
2339
2339
/// Returns the nearest integer to an `f32`. Rounds half-way cases away from zero.
2340
2340
///
2341
2341
/// The stabilized version of this intrinsic is
2342
2342
/// [`f32::round`](../../std/primitive.f32.html#method.round)
2343
2343
#[ rustc_intrinsic]
2344
2344
#[ rustc_nounwind]
2345
- pub unsafe fn roundf32 ( x : f32 ) -> f32 ;
2345
+ pub const unsafe fn roundf32 ( x : f32 ) -> f32 ;
2346
2346
/// Returns the nearest integer to an `f64`. Rounds half-way cases away from zero.
2347
2347
///
2348
2348
/// The stabilized version of this intrinsic is
2349
2349
/// [`f64::round`](../../std/primitive.f64.html#method.round)
2350
2350
#[ rustc_intrinsic]
2351
2351
#[ rustc_nounwind]
2352
- pub unsafe fn roundf64 ( x : f64 ) -> f64 ;
2352
+ pub const unsafe fn roundf64 ( x : f64 ) -> f64 ;
2353
2353
/// Returns the nearest integer to an `f128`. Rounds half-way cases away from zero.
2354
2354
///
2355
2355
/// The stabilized version of this intrinsic is
2356
2356
/// [`f128::round`](../../std/primitive.f128.html#method.round)
2357
2357
#[ rustc_intrinsic]
2358
2358
#[ rustc_nounwind]
2359
- pub unsafe fn roundf128 ( x : f128 ) -> f128 ;
2359
+ pub const unsafe fn roundf128 ( x : f128 ) -> f128 ;
2360
2360
2361
2361
/// Float addition that allows optimizations based on algebraic rules.
2362
2362
/// May assume inputs are finite.
0 commit comments