X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fgen%2Fmp.c;h=172b454e5e0fcf738cadf1ca27044605a0550f78;hb=db87a4c3abf99af95d5dfe27f77b6815ec27a4f4;hp=48492c1183bfe5f13686a68823f62eb5d34b8393;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/gen/mp.c b/src/math/gen/mp.c index 48492c1..172b454 100644 --- a/src/math/gen/mp.c +++ b/src/math/gen/mp.c @@ -123,7 +123,7 @@ static void genf(struct t *p, mpfr_t my, int t, int r) t = adjust(mr, my, t, r); p->y = mpfr_get_flt(mr, r); - p->e = eflags(isnan(p->x) || isnan(p->x2)); + p->e = eflags(isnan(p->x) || isnan(p->x2) || isnan(p->x3)); i = eulpf(p->y); if (!isfinite(p->y)) { p->dy = 0; @@ -193,7 +193,7 @@ static void gend(struct t *p, mpfr_t my, int t, int r) t = adjust(mr, my, t, r); p->y = mpfr_get_d(mr, r); - p->e = eflags(isnan(p->x) || isnan(p->x2)); + p->e = eflags(isnan(p->x) || isnan(p->x2) || isnan(p->x3)); i = eulp(p->y); if (!isfinite(p->y)) { p->dy = 0; @@ -268,7 +268,7 @@ static void genl(struct t *p, mpfr_t my, int t, int r) t = adjust(mr, my, t, r); p->y = mpfr_get_ld(mr, r); - p->e = eflags(isnan(p->x) || isnan(p->x2)); + p->e = eflags(isnan(p->x) || isnan(p->x2) || isnan(p->x3)); i = eulpl(p->y); if (!isfinite(p->y)) { p->dy = 0;