- if (!checkulp(d, p->r)) {
- printf("%s tgamma(%a) want %a got %a ulperr %.3f = %a + %a\n",
- rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy);
+ // TODO: 2 ulp errors allowed
+ if (p->r==RN && fabs(d)>2) {
+ printf("%s:%d: %s tgamma(%a) want %a got %a ulperr %.3f = %a + %a\n",
+ p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy);