From b5b42b45c2b1ac74158338bfab7b34630f138632 Mon Sep 17 00:00:00 2001 From: Christophe Date: Wed, 20 Dec 2023 23:28:36 +0100 Subject: [PATCH] Fix bitCount test version --- test/core/core_func_integer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/core/core_func_integer.cpp b/test/core/core_func_integer.cpp index e7b2da18..f7988afb 100644 --- a/test/core/core_func_integer.cpp +++ b/test/core/core_func_integer.cpp @@ -1426,7 +1426,7 @@ namespace bitCount template static glm::vec bitCount_bitfield(glm::vec const& v) { - glm::vec::type, Q> x(*reinterpret_cast::type, Q> const *>(&v)); + glm::vec::type, Q> x(v); x = compute_bitfieldBitCountStep= 2>::call(x, static_cast::type>(0x5555555555555555ull), static_cast::type>( 1)); x = compute_bitfieldBitCountStep= 4>::call(x, static_cast::type>(0x3333333333333333ull), static_cast::type>( 2)); x = compute_bitfieldBitCountStep= 8>::call(x, static_cast::type>(0x0F0F0F0F0F0F0F0Full), static_cast::type>( 4)); @@ -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); @@ -1524,7 +1524,6 @@ namespace bitCount int ResultE = bitCount_bitfield(DataI32[i].Value); Error += DataI32[i].Return == ResultE ? 0 : 1; assert(!Error); -*/ } return Error;