err++;
}
d = ulperr(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkcr(y, p->y, p->r)) {
printf("%s:%d: %s fmod(%a,%a) want %a 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++;
err++;
}
d = ulperrf(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkcr(y, p->y, p->r)) {
printf("%s:%d: %s fmodf(%a,%a) want %a 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++;
err++;
}
d = ulperrl(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkcr(y, p->y, p->r)) {
printf("%s:%d: %s fmodl(%La,%La) want %La got %La 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++;
err++;
}
d = ulperr(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkulp(d, p->r) || (p->r == RN && fabs(d) >= 1.0)) {
printf("%s:%d: %s hypot(%a,%a) want %a 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++;
err++;
}
d = ulperrf(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkulp(d, p->r) || (p->r == RN && fabs(d) >= 1.0)) {
printf("%s:%d: %s hypotf(%a,%a) want %a 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++;
err++;
}
d = ulperrl(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkulp(d, p->r) || (p->r == RN && fabs(d) >= 1.0)) {
printf("%s:%d: %s hypotl(%La,%La) want %La got %La 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++;
err++;
}
d = ulperr(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkcr(y, p->y, p->r)) {
printf("%s:%d: %s remainder(%a,%a) want %a 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++;
err++;
}
d = ulperrf(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkcr(y, p->y, p->r)) {
printf("%s:%d: %s remainderf(%a,%a) want %a 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++;
err++;
}
d = ulperrl(y, p->y, p->dy);
- if (!checkulp(d, p->r)) {
+ if (!checkcr(y, p->y, p->r)) {
printf("%s:%d: %s remainderl(%La,%La) want %La got %La 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++;
err++;
}
d = ulperr(y, p->y, p->dy);
- if (!checkulp(d, p->r) ||
+ if (!checkcr(y, p->y, p->r) ||
(!isnan(p->y) && (yi & 7) != (p->i & 7)) ||
(!isnan(p->y) && (yi < 0) != (p->i < 0))) {
printf("%s:%d: %s remquo(%a,%a) want %a,%lld got %a,%d ulperr %.3f = %a + %a\n",
err++;
}
d = ulperr(y, p->y, p->dy);
- if (!checkulp(d, p->r) ||
+ if (!checkcr(y, p->y, p->r) ||
(!isnan(p->y) && (yi & 7) != (p->i & 7)) ||
(!isnan(p->y) && (yi < 0) != (p->i < 0))) {
printf("%s:%d: %s remquof(%a,%a) want %a,%lld got %a,%d ulperr %.3f = %a + %a\n",
err++;
}
d = ulperr(y, p->y, p->dy);
- if (!checkulp(d, p->r) ||
+ if (!checkcr(y, p->y, p->r) ||
(!isnan(p->y) && (yi & 7) != (p->i & 7)) ||
(!isnan(p->y) && (yi < 0) != (p->i < 0))) {
printf("%s:%d: %s remquol(%La,%La) want %La,%lld got %La,%d ulperr %.3f = %a + %a\n",