From 3e2d6fa716630fb50e91262b842a9ca2604f27bc Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Thu, 1 May 2003 12:54:17 +0000 Subject: [PATCH] just 64 bit alpha has the worst float precision git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2580 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- support/regression/tests/simplefloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/regression/tests/simplefloat.c b/support/regression/tests/simplefloat.c index b19c8055..49ae5101 100644 --- a/support/regression/tests/simplefloat.c +++ b/support/regression/tests/simplefloat.c @@ -4,7 +4,7 @@ #include #if (PORT_HOST) -# define FCOMP(a,b) (fabsf((a) - (b)) < ((b) * 1e-10)) +# define FCOMP(a,b) (fabsf((a) - (b)) < ((b) * 1e-7)) #else /* Testing floats for equality is normally a bug, but too keep this test simple we dare it. And -- 2.30.2