Moved typedef'd integers into PlyVox namespace instead of std.
This commit is contained in:
@@ -27,21 +27,21 @@ namespace PolyVox
|
||||
{
|
||||
//Note: this function only works for inputs which are a power of two and not zero
|
||||
//If this is not the case then the output is undefined.
|
||||
std::uint8_t logBase2(std::uint32_t uInput)
|
||||
uint8 logBase2(uint32 uInput)
|
||||
{
|
||||
assert(uInput != 0);
|
||||
assert(isPowerOf2(uInput));
|
||||
|
||||
std::uint32_t uResult = 0;
|
||||
uint32 uResult = 0;
|
||||
while( (uInput >> uResult) != 0)
|
||||
{
|
||||
++uResult;
|
||||
}
|
||||
return static_cast<std::uint8_t>(uResult-1);
|
||||
return static_cast<uint8>(uResult-1);
|
||||
}
|
||||
|
||||
|
||||
bool isPowerOf2(std::uint32_t uInput)
|
||||
bool isPowerOf2(uint32 uInput)
|
||||
{
|
||||
if(uInput == 0)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user