]> git.gag.com Git - fw/sdcc/commitdiff
just 64 bit alpha has the worst float precision
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 1 May 2003 12:54:17 +0000 (12:54 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 1 May 2003 12:54:17 +0000 (12:54 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2580 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/tests/simplefloat.c

index b19c8055a7d78e4fd0c6e8f3ccce3a4838148f68..49ae5101f5a660ebaf40782e786ca479814e6aeb 100644 (file)
@@ -4,7 +4,7 @@
 #include <math.h>
 
 #if (PORT_HOST)
 #include <math.h>
 
 #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
 #else
    /* Testing floats for equality is normally a bug,
       but too keep this test simple we dare it. And