#include <stdint.h>
#include <stdio.h>
-#include "util.h"
+#include "mtest.h"
static struct l_i t[] = {
#if LDBL_MANT_DIG == 53
#include "sanity/lround.h"
+#include "special/lround.h"
#elif LDBL_MANT_DIG == 64
#include "sanity/lroundl.h"
+#include "special/lroundl.h"
#endif
};
{
#pragma STDC FENV_ACCESS ON
long long yi;
- float d;
int e, i, err = 0;
struct l_i *p;
printf(" got %s\n", estr(e));
err++;
}
- if (yi != p->i) {
+ if (!(p->e&INVALID) && yi != p->i) {
printf("%s:%d: %s lroundl(%La) want %lld got %lld\n",
p->file, p->line, rstr(p->r), p->x, p->i, yi);
err++;