Skip to content

Commit

Permalink
Fix bitCount test version
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Dec 20, 2023
1 parent 641bb36 commit b5b42b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/core/core_func_integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ namespace bitCount
template<glm::length_t L, typename T, glm::qualifier Q>
static glm::vec<L, int, Q> bitCount_bitfield(glm::vec<L, T, Q> const& v)
{
glm::vec<L, typename glm::detail::make_unsigned<T>::type, Q> x(*reinterpret_cast<glm::vec<L, typename glm::detail::make_unsigned<T>::type, Q> const *>(&v));
glm::vec<L, typename glm::detail::make_unsigned<T>::type, Q> x(v);
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 2>::call(x, static_cast<typename glm::detail::make_unsigned<T>::type>(0x5555555555555555ull), static_cast<typename glm::detail::make_unsigned<T>::type>( 1));
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 4>::call(x, static_cast<typename glm::detail::make_unsigned<T>::type>(0x3333333333333333ull), static_cast<typename glm::detail::make_unsigned<T>::type>( 2));
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 8>::call(x, static_cast<typename glm::detail::make_unsigned<T>::type>(0x0F0F0F0F0F0F0F0Full), static_cast<typename glm::detail::make_unsigned<T>::type>( 4));
Expand Down Expand Up @@ -1512,7 +1512,7 @@ namespace bitCount
int ResultA = glm::bitCount(DataI32[i].Value);
Error += DataI32[i].Return == ResultA ? 0 : 1;
assert(!Error);
/*

int ResultB = bitCount_if(DataI32[i].Value);
Error += DataI32[i].Return == ResultB ? 0 : 1;
assert(!Error);
Expand All @@ -1524,7 +1524,6 @@ namespace bitCount
int ResultE = bitCount_bitfield(DataI32[i].Value);
Error += DataI32[i].Return == ResultE ? 0 : 1;
assert(!Error);
*/
}

return Error;
Expand Down

0 comments on commit b5b42b4

Please sign in to comment.