From: Szabolcs Nagy Date: Tue, 13 Nov 2012 10:02:55 +0000 (+0100) Subject: math: fix nexttoward and nexttowardf tests X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=105b3911ac2fe37478248c2917caf345d1ec0b14 math: fix nexttoward and nexttowardf tests --- diff --git a/src/math/nexttoward.c b/src/math/nexttoward.c index d56cfea..66c63a6 100644 --- a/src/math/nexttoward.c +++ b/src/math/nexttoward.c @@ -39,9 +39,9 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - d = ulperrl(y, p->y, p->dy); + d = ulperr(y, p->y, p->dy); if (!checkcr(y, p->y, p->r)) { - printf("%s:%d: %s nexttoward(%La,%La) want %La got %La ulperr %.3f = %a + %a\n", + printf("%s:%d: %s nexttoward(%La,%La) want %La got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy); err++; } diff --git a/src/math/nexttowardf.c b/src/math/nexttowardf.c index 0ba0c43..d2a1762 100644 --- a/src/math/nexttowardf.c +++ b/src/math/nexttowardf.c @@ -39,9 +39,9 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - d = ulperrl(y, p->y, p->dy); + d = ulperrf(y, p->y, p->dy); if (!checkcr(y, p->y, p->r)) { - printf("%s:%d: %s nexttowardf(%La,%La) want %La got %La ulperr %.3f = %a + %a\n", + printf("%s:%d: %s nexttowardf(%La,%La) want %La got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy); err++; }