Moved typedef'd integers into PlyVox namespace instead of std.

This commit is contained in:
David Williams
2008-07-01 21:38:10 +00:00
parent 1c2a007d23
commit 0758f81b54
34 changed files with 652 additions and 653 deletions

View File

@@ -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;