void ActivateColumn(unsigned int iColID, const char *sItem) { REPORTCOL *pCol; NOREF(sItem); pCol = &aColumns[iColID]; if (pCol->bActive == 0) { pCol->bActive = 1; ParseItemList(&listFunctions,pCol->sFunctions,ActivateFunction); switch (pCol->eType) { case ColInt: pCol->pColumnData = AllocateRAM(iNumRuns * sizeof(unsigned int)); memset(pCol->pColumnData,0,(iNumRuns)*sizeof(unsigned int)); break; case ColFloat: pCol->pColumnData = AllocateRAM(iNumRuns * sizeof(FLOAT)); memset(pCol->pColumnData,0,(iNumRuns)*sizeof(FLOAT)); break; } } }
void SortByStepPerformance() { unsigned int j; REPORTCOL *pCol; pCol = &aColumns[FindItem(&listColumns,"steps")]; aStepArray = (unsigned int *)pCol->pColumnData; aSortedBySteps = (unsigned int *)AllocateRAM(sizeof(unsigned int) * iRun); for (j=0;j<iRun;j++) { aSortedBySteps[j] = j; } qsort((void *)aSortedBySteps,iRun,sizeof(unsigned int),CompareSorted); }
void CreateFileRandom() { pRandomDataBuffer = AllocateRAM(RANDOMFILEBUFFERSIZE); SetupFile(&filRandomData,"rb",sFilenameRandomData,NULL,FALSE); if (filRandomData==NULL) { ReportPrint(pRepErr,"Error! Unable to read from random data file\n"); AbnormalExit(); } iRandomBufferRemaining = fread(pRandomDataBuffer,1,RANDOMFILEBUFFERSIZE,filRandomData); if ((iRandomBufferRemaining < RANDOMFILEBUFFERSIZE)||(feof(filRandomData))) { bCycleData = TRUE; iCycleDataLen = iRandomBufferRemaining; } else { bCycleData = FALSE; } pNextRandomData = pRandomDataBuffer; fxnRandUInt32 = FileRandomUInt32; }
void SetString(char **sNew, const char *sSrc) { (*sNew) = AllocateRAM(strlen(sSrc)+1); strcpy(*sNew,sSrc); }
void CreateMakeBreakW() { aBreakCountW = (double*)AllocateRAM((iNumVar+1)*sizeof(FLOAT)); aMakeCountW = (double*)AllocateRAM((iNumVar+1)*sizeof(FLOAT)); aCritSat = (unsigned int*)AllocateRAM(iNumClause*sizeof(unsigned int)); }