Lines Matching refs:want
39 static int check(struct t *want, struct t *got, struct fun *f, float ulpthres, float *abserr);
126 static int check(struct t *want, struct t *got, struct fun *f, float ulpthres, float *abserr)
131 if ((got->e|m) != (want->e|m)) {
132 fprintf(stdout, "//%s %s(%La,%La)==%La except: want %s",
133 rstr(want->r), f->name, want->x, want->x2, want->y, estr(want->e));
137 if (isnan(got->y) && isnan(want->y))
139 if (got->y != want->y || signbit(got->y) != signbit(want->y)) {
149 n = eulp(want->y);
151 n = eulpf(want->y);
153 n = eulpl(want->y);
157 d = scalbnl(got->y - want->y, -n);
158 *abserr = fabsf(d + want->dy);
161 fprintf(stdout, "//%s %s(%La,%La) want %La got %La ulperr %.3f = %a + %a\n",
162 rstr(want->r), f->name, want->x, want->x2, want->y, got->y, d + want->dy, d, want->dy);