diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-13 22:07:24 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-13 22:07:24 +0000 |
commit | 8a9fd3f93bb3db2d969126913eedab023dba013f (patch) | |
tree | 5cd76353b5ec3e8be5c1062c0294e9b402a71487 /fourier.c | |
parent | 9631ec05f6ddc60b231e5fad280e5a5242c5bab3 (diff) |
Remove AllocateMemory, FreeMemory, MoveMemory, ErrorExit, and ReportError functions
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@17 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'fourier.c')
-rw-r--r-- | fourier.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -34,25 +34,15 @@ static double thefunction(double x, */ void DoFourier(void) { -FourierStruct *locfourierstruct; /* Local fourier struct */ +FourierStruct *locfourierstruct=&global_fourierstruct; /* Local fourier struct */ double *abase = NULL; /* Base of A[] coefficients array */ double *bbase = NULL; /* Base of B[] coefficients array */ unsigned long accumtime; /* Accumulated time in ticks */ double iterations; /* # of iterations */ -char *context; /* Error context string pointer */ +char *context = "FPU:Transcendental"; /* Error context string pointer */ int systemerror; /* For error code */ /* -** Link to global structure -*/ -locfourierstruct=&global_fourierstruct; - -/* -** Set error context string -*/ -context="FPU:Transcendental"; - -/* ** See if we need to do self-adjustment code. */ if(locfourierstruct->adjust==0) @@ -84,8 +74,6 @@ if(locfourierstruct->adjust==0) /* ** Make bigger arrays and try again. */ - FreeMemory((void *)abase,&systemerror); - FreeMemory((void *)bbase,&systemerror); locfourierstruct->arraysize+=50L; } } |