From 0b7a59d9666cde1d25a47f28420cd4f48b1e423f Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Wed, 27 Dec 2023 16:54:37 +0800 Subject: [PATCH] Update half.h (#449) --- libspu/core/half.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libspu/core/half.h b/libspu/core/half.h index 92740b0e..6a318995 100644 --- a/libspu/core/half.h +++ b/libspu/core/half.h @@ -1686,7 +1686,7 @@ template T half2int(unsigned int value) { unsigned int abs = value & 0x7FFF; if (abs >= 0x7C00) { - raise(FE_INVALID); + detail::raise(FE_INVALID); return (value & 0x8000) ? std::numeric_limits::min() : std::numeric_limits::max(); } @@ -1712,9 +1712,9 @@ T half2int(unsigned int value) { (std::numeric_limits::digits < 16 && ((value & 0x8000) ? (-i < std::numeric_limits::min()) : (i > std::numeric_limits::max())))) - raise(FE_INVALID); + detail::raise(FE_INVALID); else if (I && exp > 0 && (m & ((1 << exp) - 1))) - raise(FE_INEXACT); + detail::raise(FE_INEXACT); return static_cast((value & 0x8000) ? -i : i); }