diff options
-rw-r--r-- | emfloat.h | 12 | ||||
-rw-r--r-- | nbench1.h | 5 | ||||
-rw-r--r-- | sysspec.c | 47 | ||||
-rw-r--r-- | sysspec.h | 9 |
4 files changed, 0 insertions, 73 deletions
@@ -124,15 +124,3 @@ static void DivideInternalFPF(InternalFPF *x,InternalFPF *y, /* static void LongToInternalFPF(long mylong, */ static void Int32ToInternalFPF(int32_t mylong, InternalFPF *dest); -#ifdef DEBUG -static int InternalFPFToString(char *dest, - InternalFPF *src); -#endif - -/* -** EXTERNALS -*/ -extern unsigned long StartStopwatch(); -extern unsigned long StopStopwatch(unsigned long elapsed); -/* extern long randwc(long num); */ -extern int32_t randwc(int32_t num); @@ -38,8 +38,3 @@ extern IDEAStruct global_ideastruct; extern HuffStruct global_huffstruct; extern NNetStruct global_nnetstruct; extern LUStruct global_lustruct; - -extern unsigned long StartStopwatch(); -extern unsigned long StopStopwatch(unsigned long startticks); -extern unsigned long TicksToSecs(unsigned long tickamount); -extern double TicksToFracSecs(unsigned long tickamount); @@ -252,50 +252,3 @@ if(writecode==nelems) *errorcode=ERROR_FILEWRITE; } - -/***************************** -** STOPWATCH ROUTINES ** -*****************************/ - -/**************************** -** StartStopwatch -** Starts a software stopwatch. Returns the first value of -** the stopwatch in ticks. -*/ -unsigned long StartStopwatch() -{ -return((unsigned long)clock()); -} - -/**************************** -** StopStopwatch -** Stops the software stopwatch. Expects as an input argument -** the stopwatch start time. -*/ -unsigned long StopStopwatch(unsigned long startticks) -{ - -return((unsigned long)clock()-startticks); -} - -/**************************** -** TicksToSecs -** Converts ticks to seconds. Converts ticks to integer -** seconds, discarding any fractional amount. -*/ -unsigned long TicksToSecs(unsigned long tickamount) -{ -return((unsigned long)(tickamount/CLOCKS_PER_SEC)); -} - -/**************************** -** TicksToFracSecs -** Converts ticks to fractional seconds. In other words, -** this returns the exact conversion from ticks to -** seconds. -*/ -double TicksToFracSecs(unsigned long tickamount) -{ -return((double)tickamount/(double)CLOCKS_PER_SEC); -} - @@ -79,12 +79,3 @@ void writefile(FILE *fhandle, unsigned long nbytes, void *buffer, int *errorcode); - -unsigned long StartStopwatch(); - -unsigned long StopStopwatch(unsigned long startticks); - -unsigned long TicksToSecs(unsigned long tickamount); - -double TicksToFracSecs(unsigned long tickamount); - |