X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fcommon%2Fmtest.h;fp=src%2Fcommon%2Fmtest.h;h=706c1ba23ea8989b17a2f72ed1a919e187c06b6a;hp=d390d03fcf79fb196a824a04b30fb2027f85689c;hb=75543c20a003e3108b51cb63998752d27621f993;hpb=89a298d7748ebeeb076fea080b8077084f2a64cb diff --git a/src/common/mtest.h b/src/common/mtest.h index d390d03..706c1ba 100644 --- a/src/common/mtest.h +++ b/src/common/mtest.h @@ -122,7 +122,8 @@ static int checkulp(float d, int r) // TODO: we only care about >=1.5 ulp errors for now, should be 1.0 if (r == RN) return fabsf(d) < 1.5; - return 1; + // accept larger error in non-nearest rounding mode + return fabsf(d) < 3.0; } static int checkcr(long double y, long double ywant, int r)