mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Fixed test build on ICC
This commit is contained in:
parent
3716995414
commit
db4be24897
@ -181,7 +181,7 @@ namespace bitfieldReverse
|
||||
return bitfieldReverseLoop(glm::tvec1<T>(v)).x;
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER uint32_t bitfieldReverseUint32(uint32_t x)
|
||||
GLM_FUNC_QUALIFIER glm::uint32_t bitfieldReverseUint32(glm::uint32_t x)
|
||||
{
|
||||
x = (x & 0x55555555) << 1 | (x & 0xAAAAAAAA) >> 1;
|
||||
x = (x & 0x33333333) << 2 | (x & 0xCCCCCCCC) >> 2;
|
||||
@ -191,7 +191,7 @@ namespace bitfieldReverse
|
||||
return x;
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER uint64_t bitfieldReverseUint64(uint64_t x)
|
||||
GLM_FUNC_QUALIFIER glm::uint64_t bitfieldReverseUint64(glm::uint64_t x)
|
||||
{
|
||||
x = (x & 0x5555555555555555) << 1 | (x & 0xAAAAAAAAAAAAAAAA) >> 1;
|
||||
x = (x & 0x3333333333333333) << 2 | (x & 0xCCCCCCCCCCCCCCCC) >> 2;
|
||||
|
Loading…
Reference in New Issue
Block a user