summaryrefslogtreecommitdiff
path: root/fourier.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-13 22:07:24 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-13 22:07:24 +0000
commit8a9fd3f93bb3db2d969126913eedab023dba013f (patch)
tree5cd76353b5ec3e8be5c1062c0294e9b402a71487 /fourier.c
parent9631ec05f6ddc60b231e5fad280e5a5242c5bab3 (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.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/fourier.c b/fourier.c
index 5596e7a..c3bd58b 100644
--- a/fourier.c
+++ b/fourier.c
@@ -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;
}
}