FTK change. Added assembly routines for calculating checksums on SPARC platforms.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@758 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-08-10 21:33:06 +00:00
parent 2e508596bc
commit 7c9bb608c9
3 changed files with 231 additions and 35 deletions

View File

@@ -409,7 +409,7 @@ FSTATIC RCODE ftkFastChecksumTest( void)
FLMUINT uiSlowTime = 0;
FLMUINT uiFastTime = 0;
f_printf( "Running checksum tests ... ");
f_printf( "Running checksum tests ");
uiDataLength = 8192;
if( RC_BAD( rc = f_alloc( uiDataLength, &pucData)))
@@ -466,9 +466,14 @@ FSTATIC RCODE ftkFastChecksumTest( void)
rc = RC_SET_AND_ASSERT( NE_FLM_FAILURE);
goto Exit;
}
if( (uiIter % 100) == 0)
{
f_printf( ".");
}
}
f_printf( "Slow time = %u ms, Fast time = %u ms. ",
f_printf( " Slow time = %u ms, Fast time = %u ms. ",
(unsigned)FLM_TIMER_UNITS_TO_MILLI( uiSlowTime),
(unsigned)FLM_TIMER_UNITS_TO_MILLI( uiFastTime));
@@ -501,7 +506,7 @@ FSTATIC RCODE ftkPacketChecksumTest( void)
FLMUINT uiSlowTime = 0;
FLMUINT uiFastTime = 0;
f_printf( "Running checksum tests ... ");
f_printf( "Running checksum tests ");
uiDataLength = 64 * 1024;
if( RC_BAD( rc = f_alloc( uiDataLength, &pucData)))
@@ -535,9 +540,14 @@ FSTATIC RCODE ftkPacketChecksumTest( void)
rc = RC_SET_AND_ASSERT( NE_FLM_FAILURE);
goto Exit;
}
if( (uiIter % 100) == 0)
{
f_printf( ".");
}
}
f_printf( "Slow time = %u ms, Fast time = %u ms. ",
f_printf( " Slow time = %u ms, Fast time = %u ms. ",
(unsigned)FLM_TIMER_UNITS_TO_MILLI( uiSlowTime),
(unsigned)FLM_TIMER_UNITS_TO_MILLI( uiFastTime));