mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 17:04:35 +00:00
gni
This commit is contained in:
parent
857257745d
commit
9c6affa1b7
@ -1510,16 +1510,21 @@ namespace bitCount
|
||||
for(std::size_t i = 0, n = sizeof(DataI32) / sizeof(type<int>); i < n; ++i)
|
||||
{
|
||||
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 == ResultB ? 0 : 1;
|
||||
Error += DataI32[i].Return == ResultC ? 0 : 1;
|
||||
Error += DataI32[i].Return == ResultE ? 0 : 1;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user