From 361131899a0b60115fd48d8c08b930e0866292d1 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 18 Nov 2008 00:13:03 +0000 Subject: Strip trailing whitespace git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@82 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- bitfield.c | 4 ++-- cleanbench.c | 10 +++++----- fpemulation.c | 2 +- linear.c | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bitfield.c b/bitfield.c index 09af58a..77bfbfa 100644 --- a/bitfield.c +++ b/bitfield.c @@ -174,7 +174,7 @@ DoBitfieldIteration(unsigned long *bitarray, unsigned long *bitoparray, long bit ** Complements a run of bits. */ static void -FlipBitRun(unsigned long *bitmap, unsigned long bit_addr, unsigned long nbits) +FlipBitRun(unsigned long *bitmap, unsigned long bit_addr, unsigned long nbits) { unsigned long bindex; /* Index into array */ unsigned long bitnumb; /* Bit number */ @@ -224,5 +224,5 @@ void ToggleBitRun(unsigned long *bitmap, /* Bitmap */ bit_addr++; } - } + } } diff --git a/cleanbench.c b/cleanbench.c index 2cbd357..703e787 100644 --- a/cleanbench.c +++ b/cleanbench.c @@ -42,7 +42,7 @@ enum { } tests_t; int -main() +main() { const char* benchmark_name[] = { "NUMERIC SORT ", @@ -90,7 +90,7 @@ main() 1565.5, /* Fourier */ 1.4799, /* Neural Net */ 26.732 /* LU Decomposition */ - }; + }; double linux_memindex = 1.0; /* Linux memory index */ double linux_intindex = 1.0; /* Linux integer index */ @@ -108,7 +108,7 @@ main() for (; benchmark < NUM_TESTS; benchmark++) { printf("%s :", benchmark_name[benchmark]); - + if (!bench_with_confidence(benchmark, &average, &std_dev, &runs)) { printf( "\n** WARNING: The current benchmark result is NOT 95 %% statistically certain.\n" "** WARNING: The variation among the individual results is too large.\n" @@ -203,7 +203,7 @@ bench_with_confidence(int benchmark, double* average, double* std_dev, int* runs if (!calc_confidence(score, *runs, &c_half_interval, average, std_dev)) { return false; } - + /* ** Is the length of the half interval 5% or less of average? ** If so, we can go home. Otherwise, we have to continue. @@ -215,7 +215,7 @@ bench_with_confidence(int benchmark, double* average, double* std_dev, int* runs if (*runs == 30) { return false; } - + score[*runs] = (*Do[benchmark])(); *runs += 1; } diff --git a/fpemulation.c b/fpemulation.c index ac92099..14c2e0d 100644 --- a/fpemulation.c +++ b/fpemulation.c @@ -53,7 +53,7 @@ DoEmFloat(void) bbase = malloc(ARRAY_SIZE * sizeof(InternalFPF)); cbase = malloc(ARRAY_SIZE * sizeof(InternalFPF)); - + SetupCPUEmFloatArrays(abase, bbase); /* FIXME: ugly */ /* See if we need to do self-adjusting code.*/ diff --git a/linear.c b/linear.c index 96d1a0b..300270e 100644 --- a/linear.c +++ b/linear.c @@ -112,7 +112,7 @@ DoLU(void) bbase = realloc(bbase, sizeof(double) * LUARRAYROWS * (num_arrays + 1)); } while ((DoLUIteration(a, b, abase, bbase, num_arrays) <= MINIMUM_TICKS) && (num_arrays <= ARRAY_MAX)); - + /* ** Were we able to do it? */ -- cgit v1.2.3