5 static struct l_i t[] = {
6 #if LDBL_MANT_DIG == 53
7 #include "sanity/ilogb.h"
9 #elif LDBL_MANT_DIG == 64
10 #include "sanity/ilogbl.h"
17 #pragma STDC FENV_ACCESS ON
23 for (i = 0; i < sizeof t/sizeof *t; i++) {
29 feclearexcept(FE_ALL_EXCEPT);
31 e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
33 if (!checkexcept(e, p->e, p->r)) {
34 printf("%s:%d: bad fp exception: %s ilogbl(%La)=%lld, want %s",
35 p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e));
36 printf(" got %s\n", estr(e));
40 printf("%s:%d: %s ilogbl(%La) want %lld got %d\n",
41 p->file, p->line, rstr(p->r), p->x, p->i, yi);