diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-22 13:11:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 13:11:56 -0500 |
| commit | 9a70f32ddaec0eef99efbf7ff5597c2adf08f45a (patch) | |
| tree | 1717d2b24d610b638cb70b12d7db74f15953f1fe /dev/lib/logic/math.hpp | |
| parent | 8470a48ef4c6ea4b16e9a764aaedc7158f9c37ed (diff) | |
| parent | 58dc03a47576601006c4870d1633bf35fc78176a (diff) | |
Merge pull request #17 from amlel-el-mahrouss/develop
feat: library improvements
Diffstat (limited to 'dev/lib/logic/math.hpp')
| -rw-r--r-- | dev/lib/logic/math.hpp | 8 |
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 |
