diff options
-rw-r--r-- | bitfield.c | 4 | ||||
-rw-r--r-- | cleanbench.c | 10 | ||||
-rw-r--r-- | fpemulation.c | 2 | ||||
-rw-r--r-- | linear.c | 2 |
4 files changed, 9 insertions, 9 deletions
@@ -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.*/ @@ -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? */ |