X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fsqrt.c;h=b6b7de644e11b2e59e8f521d8a334ee08f0daf8e;hb=7fd3b84625cfa955207526eda74d9261c5324549;hp=29ff80069a52d6100f31ff8928f1f52a7adfe332;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/sqrt.c b/src/math/sqrt.c index 29ff800..b6b7de6 100644 --- a/src/math/sqrt.c +++ b/src/math/sqrt.c @@ -5,6 +5,7 @@ static struct d_d t[] = { #include "ucb/sqrt.h" #include "sanity/sqrt.h" +#include "special/sqrt.h" }; @@ -33,7 +34,7 @@ int main(void) err++; } d = ulperr(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkcr(y, p->y, p->r)) { printf("%s:%d: %s sqrt(%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++;