From 5a7f0d2e7b4265153ccc70051bdae8b851617ede Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 11 Nov 2008 23:00:38 +0000 Subject: Remove stupid datatypes. Begin code cleanup git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@5 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- neural.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'neural.c') diff --git a/neural.c b/neural.c index 0a1bced..04d49fe 100644 --- a/neural.c +++ b/neural.c @@ -50,7 +50,7 @@ void DoNNET(void) { NNetStruct *locnnetstruct; /* Local ptr to global data */ char *errorcontext; -ulong accumtime; +unsigned long accumtime; double iterations; /* @@ -72,7 +72,7 @@ errorcontext="CPU:NNET"; ** the initial neural net state. */ /* randnum(3L); */ -randnum((int32)3); +randnum((int32_t)3); /* ** Read in the input and output patterns. We'll do this @@ -97,7 +97,7 @@ if(locnnetstruct->adjust==0) locnnetstruct->loopsloops++) { /*randnum(3L); */ - randnum((int32)3); + randnum((int32_t)3); if(DoNNetIteration(locnnetstruct->loops) >global_min_ticks) break; } @@ -111,7 +111,7 @@ iterations=(double)0.0; do { /* randnum(3L); */ /* Gotta do this for Neural Net */ - randnum((int32)3); /* Gotta do this for Neural Net */ + randnum((int32_t)3); /* Gotta do this for Neural Net */ accumtime+=DoNNetIteration(locnnetstruct->loops); iterations+=(double)locnnetstruct->loops; } while(TicksToSecs(accumtime)request_secs); @@ -135,9 +135,9 @@ return; ** Do a single iteration of the neural net benchmark. ** By iteration, we mean a "learning" pass. */ -static ulong DoNNetIteration(ulong nloops) +static unsigned long DoNNetIteration(unsigned long nloops) { -ulong elapsed; /* Elapsed time */ +unsigned long elapsed; /* Elapsed time */ int patt; /* @@ -602,7 +602,7 @@ for (neurode = 0; neurode