summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-18 00:13:03 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-18 00:13:03 +0000
commit361131899a0b60115fd48d8c08b930e0866292d1 (patch)
tree298c200cf03e1ffb622e1bb351cb8623eb42c8c1
parent57d728301cd1828f4597624437df4355385f3d05 (diff)
Strip trailing whitespace
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@82 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r--bitfield.c4
-rw-r--r--cleanbench.c10
-rw-r--r--fpemulation.c2
-rw-r--r--linear.c2
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?
*/