From 0a0699aba70c04e3e6c5847b47cee75025e96255 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 15 Nov 2008 05:23:15 +0000 Subject: Use stdbool.h, bool, true, false instead of manually defining git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@60 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- fpemulation.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fpemulation.c') diff --git a/fpemulation.c b/fpemulation.c index 4089e71..bd4b320 100644 --- a/fpemulation.c +++ b/fpemulation.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -48,7 +49,7 @@ DoEmFloat(void) clock_t total_time = 0; int iterations = 0; unsigned long i = 1; - static int is_adjusted = FALSE; + static bool is_adjusted = false; static long loops = 0; abase = malloc(ARRAY_SIZE * sizeof(InternalFPF)); @@ -76,8 +77,8 @@ DoEmFloat(void) SetupCPUEmFloatArrays(abase, bbase); /* FIXME: ugly */ /* See if we need to do self-adjusting code.*/ - if (is_adjusted == FALSE) { - is_adjusted = TRUE; + if (is_adjusted == false) { + is_adjusted = true; /* ** Do an iteration of the tests. If the elapsed time is -- cgit v1.2.3