summaryrefslogtreecommitdiffstats
path: root/deps/include/glm/detail/func_integer_simd.inl
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-28 01:59:49 +0500
committeruntodesu <kirill@untode.su>2025-06-28 01:59:49 +0500
commit61e5bcef2629e2d68b805a956a96fff264d4f74d (patch)
treebca3a94bac79d34e3c0db57c77604f5a823ecbda /deps/include/glm/detail/func_integer_simd.inl
parent88c01588aa0830e219eaa62588839e4d1e2883ce (diff)
downloadvoxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.tar.bz2
voxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.zip
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)
Diffstat (limited to 'deps/include/glm/detail/func_integer_simd.inl')
-rw-r--r--deps/include/glm/detail/func_integer_simd.inl65
1 files changed, 0 insertions, 65 deletions
diff --git a/deps/include/glm/detail/func_integer_simd.inl b/deps/include/glm/detail/func_integer_simd.inl
deleted file mode 100644
index 5600c84..0000000
--- a/deps/include/glm/detail/func_integer_simd.inl
+++ /dev/null
@@ -1,65 +0,0 @@
-#include "../simd/integer.h"
-
-#if GLM_ARCH & GLM_ARCH_SSE2_BIT
-
-namespace glm{
-namespace detail
-{
- template<qualifier Q>
- struct compute_bitfieldReverseStep<4, uint, Q, true, true>
- {
- GLM_FUNC_QUALIFIER static vec<4, uint, Q> call(vec<4, uint, Q> const& v, uint Mask, uint Shift)
- {
- __m128i const set0 = v.data;
-
- __m128i const set1 = _mm_set1_epi32(static_cast<int>(Mask));
- __m128i const and1 = _mm_and_si128(set0, set1);
- __m128i const sft1 = _mm_slli_epi32(and1, static_cast<int>(Shift));
-
- __m128i const set2 = _mm_andnot_si128(set0, _mm_set1_epi32(-1));
- __m128i const and2 = _mm_and_si128(set0, set2);
- __m128i const sft2 = _mm_srai_epi32(and2, static_cast<int>(Shift));
-
- __m128i const or0 = _mm_or_si128(sft1, sft2);
-
- return or0;
- }
- };
-
- template<qualifier Q>
- struct compute_bitfieldBitCountStep<4, uint, Q, true, true>
- {
- GLM_FUNC_QUALIFIER static vec<4, uint, Q> call(vec<4, uint, Q> const& v, uint Mask, uint Shift)
- {
- __m128i const set0 = v.data;
-
- __m128i const set1 = _mm_set1_epi32(static_cast<int>(Mask));
- __m128i const and0 = _mm_and_si128(set0, set1);
- __m128i const sft0 = _mm_slli_epi32(set0, static_cast<int>(Shift));
- __m128i const and1 = _mm_and_si128(sft0, set1);
- __m128i const add0 = _mm_add_epi32(and0, and1);
-
- return add0;
- }
- };
-}//namespace detail
-
-# if GLM_ARCH & GLM_ARCH_AVX_BIT
- template<>
- GLM_FUNC_QUALIFIER int bitCount(uint x)
- {
- return _mm_popcnt_u32(x);
- }
-
-# if(GLM_MODEL == GLM_MODEL_64)
- template<>
- GLM_FUNC_QUALIFIER int bitCount(detail::uint64 x)
- {
- return static_cast<int>(_mm_popcnt_u64(x));
- }
-# endif//GLM_MODEL
-# endif//GLM_ARCH
-
-}//namespace glm
-
-#endif//GLM_ARCH & GLM_ARCH_SSE2_BIT