• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/usr/tests/msun/

Lines Matching refs:test

42 #include "test-utils.h"
56 #define test(func, x, y, z, result, exceptmask, excepts) do { \
64 test(fma, (double)(x), (double)(y), (double)(z), \
66 test(fmaf, (float)(x), (float)(y), (float)(z), \
68 test(fmal, (x), (y), (z), (result), (exceptmask), (excepts)); \
74 test((func), (x), (y), (z), (rn), (exceptmask), (excepts)); \
76 test((func), (x), (y), (z), (ru), (exceptmask), (excepts)); \
78 test((func), (x), (y), (z), (rd), (exceptmask), (excepts)); \
80 test((func), (x), (y), (z), (rz), (exceptmask), (excepts)); \
115 test(fmaf, -FLT_MIN, FLT_MIN, 0.0, -0.0,
117 test(fma, -DBL_MIN, DBL_MIN, 0.0, -0.0,
119 test(fmal, -LDBL_MIN, LDBL_MIN, 0.0, -0.0,
151 test(fmaf, FLT_MAX, FLT_MAX, -INFINITY, -INFINITY, ALL_STD_EXCEPT, 0);
152 test(fma, DBL_MAX, DBL_MAX, -INFINITY, -INFINITY, ALL_STD_EXCEPT, 0);
153 test(fmal, LDBL_MAX, LDBL_MAX, -INFINITY, -INFINITY,
155 test(fmaf, FLT_MAX, -FLT_MAX, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
156 test(fma, DBL_MAX, -DBL_MAX, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
157 test(fmal, LDBL_MAX, -LDBL_MAX, INFINITY, INFINITY,
173 test(fmaf, FLT_MIN, FLT_MIN, NAN, NAN, ALL_STD_EXCEPT, 0);
174 test(fma, DBL_MIN, DBL_MIN, NAN, NAN, ALL_STD_EXCEPT, 0);
175 test(fmal, LDBL_MIN, LDBL_MIN, NAN, NAN, ALL_STD_EXCEPT, 0);
176 test(fmaf, FLT_MAX, FLT_MAX, NAN, NAN, ALL_STD_EXCEPT, 0);
177 test(fma, DBL_MAX, DBL_MAX, NAN, NAN, ALL_STD_EXCEPT, 0);
178 test(fmal, LDBL_MAX, LDBL_MAX, NAN, NAN, ALL_STD_EXCEPT, 0);
190 test(fmaf, one, one, 0x1.0p-100, 1.0 + FLT_EPSILON,
192 test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON,
194 test(fmal, one, one, 0x1.0p-200, 1.0 + LDBL_EPSILON,
203 test(fmaf, -one, one, -0x1.0p-100, -(1.0 + FLT_EPSILON),
205 test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON),
207 test(fmal, -one, one, -0x1.0p-200, -(1.0 + LDBL_EPSILON),
216 test(fmaf, one, one, -0x1.0p-100, 1.0 - FLT_EPSILON / 2,
218 test(fma, one, one, -0x1.0p-200, 1.0 - DBL_EPSILON / 2,
220 test(fmal, one, one, -0x1.0p-200, 1.0 - LDBL_EPSILON / 2,
229 test(fmaf, -one, one, 0x1.0p-100, -1.0 + FLT_EPSILON / 2,
231 test(fma, -one, one, 0x1.0p-200, -1.0 + DBL_EPSILON / 2,
233 test(fmal, -one, one, 0x1.0p-200, -1.0 + LDBL_EPSILON / 2,
250 test(fmaf, 0x1.0p-50, 0x1.0p-50, 1.0, 1.0 + FLT_EPSILON,
252 test(fma, 0x1.0p-100, 0x1.0p-100, 1.0, 1.0 + DBL_EPSILON,
254 test(fmal, 0x1.0p-100, 0x1.0p-100, 1.0, 1.0 + LDBL_EPSILON,
263 test(fmaf, -0x1.0p-50, 0x1.0p-50, -1.0, -(1.0 + FLT_EPSILON),
265 test(fma, -0x1.0p-100, 0x1.0p-100, -1.0, -(1.0 + DBL_EPSILON),
267 test(fmal, -0x1.0p-100, 0x1.0p-100, -1.0, -(1.0 + LDBL_EPSILON),
276 test(fmaf, -0x1.0p-50, -0x1.0p-50, -1.0,
278 test(fma, -0x1.0p-100, -0x1.0p-100, -1.0,
280 test(fmal, -0x1.0p-100, -0x1.0p-100, -1.0,
289 test(fmaf, 0x1.0p-50, -0x1.0p-50, 1.0, 1.0 - FLT_EPSILON / 2,
291 test(fma, 0x1.0p-100, -0x1.0p-100, 1.0, 1.0 - DBL_EPSILON / 2,
293 test(fmal, 0x1.0p-100, -0x1.0p-100, 1.0, 1.0 - LDBL_EPSILON / 2,
439 test(fma, 0x1.8000000000001p0, 0x1.8000000000001p0,
443 test(fma, 0x1.8000000000001p0, 0x1.8000000000001p0,
447 test(fma, 0x1.8000000000001p0, 0x1.8000000000001p0,
452 test(fmaf, 0x1.800002p+0, 0x1.800002p+0, -0x1.000002p-46, 0x1.200002p+1,
455 test(fmaf, 0x1.800002p+0, 0x1.800002p+0, -0x1.000002p-46, 0x1.200002p+1,
458 test(fmaf, 0x1.800002p+0, 0x1.800002p+0, -0x1.000002p-46, 0x1.200004p+1,
463 test(fmal, 0x1.4p+0L, 0x1.0000000000000004p+0L, 0x1p-128L,
466 test(fmal, 0x1.8000000000000000000000000001p+0L,