mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed build.
This commit is contained in:
@@ -96,13 +96,13 @@ namespace bx
|
||||
|
||||
DiyFp Normalize() const
|
||||
{
|
||||
uint32_t s = uint64_cntlz(f);
|
||||
uint8_t s = countLeadingZeros(f);
|
||||
return DiyFp(f << s, e - s);
|
||||
}
|
||||
|
||||
DiyFp NormalizeBoundary() const
|
||||
{
|
||||
uint32_t index = uint64_cntlz(f);
|
||||
uint8_t index = countLeadingZeros(f);
|
||||
return DiyFp (f << index, e - index);
|
||||
}
|
||||
|
||||
|
||||
@@ -217,16 +217,15 @@ namespace bx
|
||||
*_inOutSize = uint32_t(result);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
#elif BX_PLATFORM_OSX
|
||||
uint32_t len = *_inOutSize;
|
||||
bool result = _NSGetExecutablePath(_out, &len);
|
||||
if (0 == result)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif // BX_PLATFORM_*
|
||||
|
||||
return 0 == result;
|
||||
#else
|
||||
return false;
|
||||
#endif // BX_PLATFORM_*
|
||||
}
|
||||
|
||||
static bool getHomePath(char* _out, uint32_t* _inOutSize)
|
||||
|
||||
Reference in New Issue
Block a user