From 61e5bcef2629e2d68b805a956a96fff264d4f74d Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 28 Jun 2025 01:59:49 +0500 Subject: Restructure dependencies and update to C++20 - Nuked static_assert from almost everywhere in the project - Nuked binary dependency support. Might add one later though - Separated dependency headers into a separate include subdirectory - Grafted a thirdpartylegalnotices.txt generator from RITEG - Pushed development snapshot version to 2126 (26th week of 2025) --- deps/include/glm/detail/compute_vector_decl.hpp | 190 ------------------------ 1 file changed, 190 deletions(-) delete mode 100644 deps/include/glm/detail/compute_vector_decl.hpp (limited to 'deps/include/glm/detail/compute_vector_decl.hpp') diff --git a/deps/include/glm/detail/compute_vector_decl.hpp b/deps/include/glm/detail/compute_vector_decl.hpp deleted file mode 100644 index 00d7de5..0000000 --- a/deps/include/glm/detail/compute_vector_decl.hpp +++ /dev/null @@ -1,190 +0,0 @@ - -#pragma once -#include -#include "_vectorize.hpp" - -namespace glm { - namespace detail - { - template - struct compute_vec_add {}; - - template - struct compute_vec_sub {}; - - template - struct compute_vec_mul {}; - - template - struct compute_vec_div {}; - - template - struct compute_vec_mod {}; - - template - struct compute_splat {}; - - template - struct compute_vec_and {}; - - template - struct compute_vec_or {}; - - template - struct compute_vec_xor {}; - - template - struct compute_vec_shift_left {}; - - template - struct compute_vec_shift_right {}; - - template - struct compute_vec_equal {}; - - template - struct compute_vec_nequal {}; - - template - struct compute_vec_bitwise_not {}; - - template - struct compute_vec_add - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - return detail::functor2::call(std::plus(), a, b); - } - }; - - template - struct compute_vec_sub - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - return detail::functor2::call(std::minus(), a, b); - } - }; - - template - struct compute_vec_mul - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - return detail::functor2::call(std::multiplies(), a, b); - } - }; - - template - struct compute_vec_div - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - return detail::functor2::call(std::divides(), a, b); - } - }; - - template - struct compute_vec_mod - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - return detail::functor2::call(std::modulus(), a, b); - } - }; - - template - struct compute_vec_and - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - vec v(a); - for (length_t i = 0; i < L; ++i) - v[i] &= static_cast(b[i]); - return v; - } - }; - - template - struct compute_vec_or - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - vec v(a); - for (length_t i = 0; i < L; ++i) - v[i] |= static_cast(b[i]); - return v; - } - }; - - template - struct compute_vec_xor - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - vec v(a); - for (length_t i = 0; i < L; ++i) - v[i] ^= static_cast(b[i]); - return v; - } - }; - - template - struct compute_vec_shift_left - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - vec v(a); - for (length_t i = 0; i < L; ++i) - v[i] <<= static_cast(b[i]); - return v; - } - }; - - template - struct compute_vec_shift_right - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a, vec const& b) - { - vec v(a); - for (length_t i = 0; i < L; ++i) - v[i] >>= static_cast(b[i]); - return v; - } - }; - - template - struct compute_vec_equal - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec const& v1, vec const& v2) - { - bool b = true; - for (length_t i = 0; i < L; ++i) - b = b && detail::compute_equal::is_iec559>::call(v1.x, v2.x); - return b; - } - }; - - template - struct compute_vec_nequal - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2) - { - return !compute_vec_equal::value, sizeof(T) * 8, detail::is_aligned::value>::call(v1, v2); - } - }; - - template - struct compute_vec_bitwise_not - { - GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a) - { - vec v(a); - for (length_t i = 0; i < L; ++i) - v[i] = ~v[i]; - return v; - } - }; - - } -} -- cgit