Update core_main.c

This commit is contained in:
Gabriel Wang 2024-01-17 07:35:59 +00:00
parent 2604ef394b
commit 6232e88af4

View File

@ -105,7 +105,7 @@ char *mem_name[3] = { "Static", "Heap", "Stack" };
*/ */
__attribute__((used)) __attribute__((used))
volatile float fCoremarkScore = 0.0f; volatile double dfCoremarkScore = 0.0f;
#if MAIN_HAS_NOARGC #if MAIN_HAS_NOARGC
MAIN_RETURN_TYPE MAIN_RETURN_TYPE
@ -412,7 +412,7 @@ for (i = 0; i < MULTITHREAD; i++)
double dfResult = (double)((double)1000000 double dfResult = (double)((double)1000000
* (double)default_num_contexts*results[0].iterations * (double)default_num_contexts*results[0].iterations
/ (double)total_time); / (double)total_time);
fCoremarkScore = (float)dfResult; dfCoremarkScore = dfResult;
ee_printf( "CoreMark 1.0 : %f / %s %s", ee_printf( "CoreMark 1.0 : %f / %s %s",
dfResult, dfResult,