From 517ccafc57089ac88b88050a4c7ab0ece4235e19 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 10 Apr 2015 18:45:16 +0000 Subject: [PATCH 1/1] fix ulp check in sincosf --- src/math/sincosf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/sincosf.c b/src/math/sincosf.c index 94e3654..f8df662 100644 --- a/src/math/sincosf.c +++ b/src/math/sincosf.c @@ -32,8 +32,8 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - dsin = ulperr(ysin, p->y, p->dy); - dcos = ulperr(ycos, p->y2, p->dy2); + dsin = ulperrf(ysin, p->y, p->dy); + dcos = ulperrf(ycos, p->y2, p->dy2); if (!checkulp(dsin, p->r) || !checkulp(dcos, p->r)) { printf("%s:%d: %s sincosf(%a) want %a,%a got %a,%a, ulperr %.3f = %a + %a, %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, p->y2, ysin, ycos, -- 2.20.1