From c52dbf5513ae7f106634967162da5cfb01dc5af3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 26 Jul 2025 01:47:32 +0100 Subject: feat: SOCL v1.0.2, changelog soon! Signed-off-by: Amlal El Mahrouss --- dev/lib/logic/math.hpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dev/lib/logic/math.hpp (limited to 'dev/lib/logic/math.hpp') diff --git a/dev/lib/logic/math.hpp b/dev/lib/logic/math.hpp new file mode 100644 index 0000000..2613799 --- /dev/null +++ b/dev/lib/logic/math.hpp @@ -0,0 +1,35 @@ +/* + * File: math.hpp + * Purpose: Mathematics c++ header. + * Author: Amlal El Mahrouss (founder@snu.systems) + * Copyright 2025, Amlal El Mahrouss all rights reserved. + */ + +#pragma once + +#include + +namespace snu::math +{ + template + struct is_non_boolean_integer final + { + static constexpr const bool value = true; + }; + + template <> + struct is_non_boolean_integer final + { + static constexpr const bool value = false; + }; + + template <> + struct is_non_boolean_integer final + { + static constexpr const bool value = false; + }; + + constexpr inline auto not_a_number = NAN; + constexpr inline auto positive_infinity = INFINITY; + constexpr inline auto negative_infinity = -positive_infinity; +} // namespace snu::math \ No newline at end of file -- cgit v1.2.3