File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ T fnearest(T value) noexcept
459
459
}
460
460
461
461
template <typename T>
462
- __attribute__ (( no_sanitize(" float-divide-by-zero" ))) inline constexpr T fdiv (T a, T b) noexcept
462
+ [[gnu:: no_sanitize(" float-divide-by-zero" )]] inline constexpr T fdiv (T a, T b) noexcept
463
463
{
464
464
static_assert (std::is_floating_point_v<T>);
465
465
static_assert (std::numeric_limits<T>::is_iec559);
@@ -495,8 +495,7 @@ inline T fmax(T a, T b) noexcept
495
495
}
496
496
497
497
498
- __attribute__ ((no_sanitize(" float-cast-overflow" ))) inline constexpr float demote (
499
- double value) noexcept
498
+ [[gnu::no_sanitize(" float-cast-overflow" )]] inline constexpr float demote (double value) noexcept
500
499
{
501
500
// The float-cast-overflow UBSan check disabled for this conversion. In older clang versions
502
501
// (up to 8.0) it reports a failure when non-infinity f64 value is converted to f32 infinity.
You can’t perform that action at this time.
0 commit comments