This commit is contained in:
Christophe 2023-12-20 22:11:57 +01:00 committed by Christophe
parent c568980cf5
commit 641bb363a7

View File

@ -1510,16 +1510,21 @@ namespace bitCount
for(std::size_t i = 0, n = sizeof(DataI32) / sizeof(type<int>); i < n; ++i) for(std::size_t i = 0, n = sizeof(DataI32) / sizeof(type<int>); i < n; ++i)
{ {
int ResultA = glm::bitCount(DataI32[i].Value); int ResultA = glm::bitCount(DataI32[i].Value);
int ResultB = bitCount_if(DataI32[i].Value);
int ResultC = bitCount_vec(DataI32[i].Value);
int ResultE = bitCount_bitfield(DataI32[i].Value);
Error += DataI32[i].Return == ResultA ? 0 : 1; Error += DataI32[i].Return == ResultA ? 0 : 1;
Error += DataI32[i].Return == ResultB ? 0 : 1;
Error += DataI32[i].Return == ResultC ? 0 : 1;
Error += DataI32[i].Return == ResultE ? 0 : 1;
assert(!Error); assert(!Error);
/*
int ResultB = bitCount_if(DataI32[i].Value);
Error += DataI32[i].Return == ResultB ? 0 : 1;
assert(!Error);
int ResultC = bitCount_vec(DataI32[i].Value);
Error += DataI32[i].Return == ResultC ? 0 : 1;
assert(!Error);
int ResultE = bitCount_bitfield(DataI32[i].Value);
Error += DataI32[i].Return == ResultE ? 0 : 1;
assert(!Error);
*/
} }
return Error; return Error;