mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 08:54:35 +00:00
Fixed test build
This commit is contained in:
parent
3f0bed6dce
commit
a71d553435
@ -173,7 +173,7 @@ namespace bitfieldReverse
|
||||
return bitfieldReverseLoop(glm::vec<1, T>(v)).x;
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER glm::uint32_t bitfieldReverseUint32(glm::uint32_t x)
|
||||
GLM_FUNC_QUALIFIER glm::uint32 bitfieldReverseUint32(glm::uint32 x)
|
||||
{
|
||||
x = (x & 0x55555555) << 1 | (x & 0xAAAAAAAA) >> 1;
|
||||
x = (x & 0x33333333) << 2 | (x & 0xCCCCCCCC) >> 2;
|
||||
@ -183,7 +183,7 @@ namespace bitfieldReverse
|
||||
return x;
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER glm::uint64_t bitfieldReverseUint64(glm::uint64_t x)
|
||||
GLM_FUNC_QUALIFIER glm::uint64 bitfieldReverseUint64(glm::uint64 x)
|
||||
{
|
||||
x = (x & 0x5555555555555555) << 1 | (x & 0xAAAAAAAAAAAAAAAA) >> 1;
|
||||
x = (x & 0x3333333333333333) << 2 | (x & 0xCCCCCCCCCCCCCCCC) >> 2;
|
||||
|
Loading…
Reference in New Issue
Block a user