/* * File: math.hpp * Purpose: Mathematics c++ header. * Author: Amlal El Mahrouss (amlal@nekernel.org) * Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License. */ #pragma once namespace ocl { template <__SIZE_TYPE__ T> 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 = __builtin_nanf (""); constexpr inline auto positive_infinity = __builtin_inff (); constexpr inline auto negative_infinity = -positive_infinity; } // namespace ocl