@@ -3170,7 +3170,7 @@ pub const fn maximumf128(x: f128, y: f128) -> f128 {
3170
3170
/// [`f16::abs`](../../std/primitive.f16.html#method.abs)
3171
3171
#[ rustc_nounwind]
3172
3172
#[ rustc_intrinsic]
3173
- pub const unsafe fn fabsf16 ( x : f16 ) -> f16 ;
3173
+ pub const fn fabsf16 ( x : f16 ) -> f16 ;
3174
3174
3175
3175
/// Returns the absolute value of an `f32`.
3176
3176
///
@@ -3179,7 +3179,7 @@ pub const unsafe fn fabsf16(x: f16) -> f16;
3179
3179
#[ rustc_nounwind]
3180
3180
#[ rustc_intrinsic_const_stable_indirect]
3181
3181
#[ rustc_intrinsic]
3182
- pub const unsafe fn fabsf32 ( x : f32 ) -> f32 ;
3182
+ pub const fn fabsf32 ( x : f32 ) -> f32 ;
3183
3183
3184
3184
/// Returns the absolute value of an `f64`.
3185
3185
///
@@ -3188,23 +3188,23 @@ pub const unsafe fn fabsf32(x: f32) -> f32;
3188
3188
#[ rustc_nounwind]
3189
3189
#[ rustc_intrinsic_const_stable_indirect]
3190
3190
#[ rustc_intrinsic]
3191
- pub const unsafe fn fabsf64 ( x : f64 ) -> f64 ;
3191
+ pub const fn fabsf64 ( x : f64 ) -> f64 ;
3192
3192
3193
3193
/// Returns the absolute value of an `f128`.
3194
3194
///
3195
3195
/// The stabilized version of this intrinsic is
3196
3196
/// [`f128::abs`](../../std/primitive.f128.html#method.abs)
3197
3197
#[ rustc_nounwind]
3198
3198
#[ rustc_intrinsic]
3199
- pub const unsafe fn fabsf128 ( x : f128 ) -> f128 ;
3199
+ pub const fn fabsf128 ( x : f128 ) -> f128 ;
3200
3200
3201
3201
/// Copies the sign from `y` to `x` for `f16` values.
3202
3202
///
3203
3203
/// The stabilized version of this intrinsic is
3204
3204
/// [`f16::copysign`](../../std/primitive.f16.html#method.copysign)
3205
3205
#[ rustc_nounwind]
3206
3206
#[ rustc_intrinsic]
3207
- pub const unsafe fn copysignf16 ( x : f16 , y : f16 ) -> f16 ;
3207
+ pub const fn copysignf16 ( x : f16 , y : f16 ) -> f16 ;
3208
3208
3209
3209
/// Copies the sign from `y` to `x` for `f32` values.
3210
3210
///
@@ -3213,23 +3213,23 @@ pub const unsafe fn copysignf16(x: f16, y: f16) -> f16;
3213
3213
#[ rustc_nounwind]
3214
3214
#[ rustc_intrinsic_const_stable_indirect]
3215
3215
#[ rustc_intrinsic]
3216
- pub const unsafe fn copysignf32 ( x : f32 , y : f32 ) -> f32 ;
3216
+ pub const fn copysignf32 ( x : f32 , y : f32 ) -> f32 ;
3217
3217
/// Copies the sign from `y` to `x` for `f64` values.
3218
3218
///
3219
3219
/// The stabilized version of this intrinsic is
3220
3220
/// [`f64::copysign`](../../std/primitive.f64.html#method.copysign)
3221
3221
#[ rustc_nounwind]
3222
3222
#[ rustc_intrinsic_const_stable_indirect]
3223
3223
#[ rustc_intrinsic]
3224
- pub const unsafe fn copysignf64 ( x : f64 , y : f64 ) -> f64 ;
3224
+ pub const fn copysignf64 ( x : f64 , y : f64 ) -> f64 ;
3225
3225
3226
3226
/// Copies the sign from `y` to `x` for `f128` values.
3227
3227
///
3228
3228
/// The stabilized version of this intrinsic is
3229
3229
/// [`f128::copysign`](../../std/primitive.f128.html#method.copysign)
3230
3230
#[ rustc_nounwind]
3231
3231
#[ rustc_intrinsic]
3232
- pub const unsafe fn copysignf128 ( x : f128 , y : f128 ) -> f128 ;
3232
+ pub const fn copysignf128 ( x : f128 , y : f128 ) -> f128 ;
3233
3233
3234
3234
/// Generates the LLVM body for the automatic differentiation of `f` using Enzyme,
3235
3235
/// with `df` as the derivative function and `args` as its arguments.
0 commit comments