summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/logic/math.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-22 07:55:15 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-22 07:55:20 -0500
commit10b3e4fbd0779833d3f2c7cff3c1d802664fa358 (patch)
tree9b520432ff0651c258b3c1a215606cf8b3a5915f /dev/lib/logic/math.hpp
parent32af6ab79fe52efa6fc773a672e2732388999692 (diff)
feat: lib: logic module improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/logic/math.hpp')
-rw-r--r--dev/lib/logic/math.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/dev/lib/logic/math.hpp b/dev/lib/logic/math.hpp
index ce73aa6..52f4535 100644
--- a/dev/lib/logic/math.hpp
+++ b/dev/lib/logic/math.hpp
@@ -7,11 +7,9 @@
#pragma once
-#include <cmath>
-
namespace ocl
{
- template <std::size_t T>
+ template <__SIZE_TYPE__ T>
struct is_non_boolean_integer final
{
static constexpr const bool value = true;
@@ -29,7 +27,7 @@ namespace ocl
static constexpr const bool value = false;
};
- constexpr inline auto not_a_number = NAN;
- constexpr inline auto positive_infinity = INFINITY;
+ constexpr inline auto not_a_number = __builtin_nanf ("");
+ constexpr inline auto positive_infinity = __builtin_inff ();
constexpr inline auto negative_infinity = -positive_infinity;
} // namespace ocl \ No newline at end of file