1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-19 03:39:08 +00:00

Convert custom HeadSpin integer types to standard types from stdint.h

This commit is contained in:
2012-01-19 21:19:26 -05:00
parent a0d54e2644
commit 5027b5a4ac
1301 changed files with 14497 additions and 14532 deletions

View File

@ -59,7 +59,7 @@ namespace pnUtilsExe {
*
***/
dword TimeGetTickCount ();
uint32_t TimeGetTickCount ();
} // namespace pnUtilsExe

View File

@ -59,7 +59,7 @@ namespace pnUtilsExe {
***/
//============================================================================
dword TimeGetTickCount () {
uint32_t TimeGetTickCount () {
return GetTickCount();
}

View File

@ -61,14 +61,14 @@ namespace pnUtilsExe {
*
***/
static dword s_adjustment;
static uint32_t s_adjustment;
//===========================================================================
static void InitializeAdjustment () {
ASSERT(!s_adjustment);
dword currTime = TimeGetTickCount();
dword startBits = (currTime & 0x80) ? 0x7fff0000 : 0xffff0000;
dword startMask = 0xffff0000;
uint32_t currTime = TimeGetTickCount();
uint32_t startBits = (currTime & 0x80) ? 0x7fff0000 : 0xffff0000;
uint32_t startMask = 0xffff0000;
s_adjustment = (((currTime & ~startMask) | startBits) - currTime) | 1;
ASSERT(s_adjustment);
}
@ -89,7 +89,7 @@ AUTO_INIT_FUNC(AutoInitializeAdjustment) {
***/
//============================================================================
dword TimeGetMs () {
uint32_t TimeGetMs () {
#ifdef HS_DEBUGGING
// For debug builds, return an adjusted timer value