Updates due to FTK changes.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@506 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-06-05 19:15:10 +00:00
parent f672e7590f
commit 76841f498b
17 changed files with 353 additions and 1604 deletions

View File

@@ -29,7 +29,6 @@
#include "flaimsys.h"
#define HIGH_FLMUINT (~((FLMUINT)0))
#define FLM_MIN_FREE_BYTES (2 * 1024 * 1024)
#ifdef FLM_32BIT
@@ -188,9 +187,9 @@ FSTATIC RCODE flmGetCacheBytes(
goto Exit;
}
if( ui64TotalPhysMem > HIGH_FLMUINT)
if( ui64TotalPhysMem > FLM_MAX_UINT)
{
ui64TotalPhysMem = HIGH_FLMUINT;
ui64TotalPhysMem = FLM_MAX_UINT;
}
if( ui64AvailPhysMem > ui64TotalPhysMem)
@@ -207,9 +206,9 @@ FSTATIC RCODE flmGetCacheBytes(
if (bCalcOnAvailMem)
{
if (uiMem > HIGH_FLMUINT - uiBytesCurrentlyInUse)
if (uiMem > FLM_MAX_UINT - uiBytesCurrentlyInUse)
{
uiMem = HIGH_FLMUINT;
uiMem = FLM_MAX_UINT;
}
else
{
@@ -237,7 +236,7 @@ FSTATIC RCODE flmGetCacheBytes(
// Calculate memory as a percentage of memory.
uiMem = (FLMUINT)((uiMem > HIGH_FLMUINT / 100)
uiMem = (FLMUINT)((uiMem > FLM_MAX_UINT / 100)
? (FLMUINT)(uiMem / 100) * uiPercent
: (FLMUINT)(uiMem * uiPercent) / 100);