Searched refs:NAN (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-12-stable/contrib/netbsd-tests/lib/libm/
H A Dt_casinh.c29 { +INFINITY, +NAN, +INFINITY, +NAN},
30 { +5.032E3, +NAN, +NAN, +NAN}, /* + FE_INVALID optionally raised */
31 { +NAN, +0, +NAN, +0},
32 { +NAN, -5.023E3, +NAN, +NAN}, /*
[all...]
H A Dt_ilogb.c113 ATF_CHECK(ilogbf(NAN) == FP_ILOGBNAN);
115 ATF_CHECK(ilogb(NAN) == FP_ILOGBNAN);
118 ATF_CHECK(ilogbl(NAN) == FP_ILOGBNAN);
/freebsd-12-stable/lib/msun/tests/
H A Dcsqrt_test.c193 assert(creall(t_csqrt(CMPLXL(INFINITY, NAN))) == INFINITY);
194 assert(isnan(cimagl(t_csqrt(CMPLXL(INFINITY, NAN)))));
196 assert(isnan(creall(t_csqrt(CMPLXL(-INFINITY, NAN)))));
197 assert(isinf(cimagl(t_csqrt(CMPLXL(-INFINITY, NAN)))));
199 assert_equal(t_csqrt(CMPLXL(NAN, INFINITY)),
201 assert_equal(t_csqrt(CMPLXL(NAN, -INFINITY)),
204 assert_equal(t_csqrt(CMPLXL(0.0, NAN)), CMPLXL(NAN, NAN));
205 assert_equal(t_csqrt(CMPLXL(-0.0, NAN)), CMPLX
[all...]
H A Dcexp_test.c129 testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN),
134 testall(CMPLXL(NAN, finites[i]), CMPLXL(NAN, NAN),
139 testall(CMPLXL(NAN, 0.0), CMPLXL(NAN, 0.0), ALL_STD_EXCEPT, 0, 1);
140 testall(CMPLXL(NAN, -0.0), CMPLXL(NAN,
[all...]
H A Dinvctrig_test.c150 long double complex nan_nan = CMPLXL(NAN, NAN);
173 z = CMPLXL(0.5, NAN);
181 z = CMPLXL(NAN, 0.5);
189 z = CMPLXL(NAN, INFINITY);
190 testall(cacosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL);
191 testall(cacosh, -z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL);
192 testall(cacos, z, CMPLXL(NAN, -INFINITY), ALL_STD_EXCEPT, 0, CS_IMAG);
193 testall(casinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0);
194 testall(casin, z, CMPLXL(NAN, INFINIT
[all...]
H A Dilogb_test.c47 assert(ilogb(NAN) == FP_ILOGBNAN);
59 assert(ilogbf(NAN) == FP_ILOGBNAN);
71 assert(ilogbl(NAN) == FP_ILOGBNAN);
H A Dctrig_test.c164 long double complex nan_nan = CMPLXL(NAN, NAN);
185 z = CMPLXL(42, NAN);
194 z = CMPLXL(NAN, 42);
203 z = CMPLXL(NAN, INFINITY);
207 testall_odd(csin, z, CMPLXL(NAN, INFINITY), ALL_STD_EXCEPT, 0, 0);
208 testall_even(ccos, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0,
212 z = CMPLXL(INFINITY, NAN);
213 testall_odd(csinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0);
214 testall_even(ccosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEP
[all...]
H A Dtrig_test.c103 testall(tan, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
104 testall(sin, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
105 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
106 testall(tan, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
107 testall(sin, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
108 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
111 testall(tan, NAN, NAN, ALL_STD_EXCEPT, 0);
112 testall(sin, NAN, NAN, ALL_STD_EXCEP
[all...]
H A Dconj_test.c67 NAN, 1.0,
68 1.0, NAN,
69 NAN, NAN,
H A Dexponential_test.c103 testall0(NAN, NAN, ALL_STD_EXCEPT, 0);
104 testall1(NAN, NAN, ALL_STD_EXCEPT, 0);
H A Dfmaxmin_test.c138 testall(6, 1.0, NAN);
139 testall(7, INFINITY, NAN);
147 testall(11, NAN, NAN);
H A Dfma_test.c138 testall(0.0, INFINITY, 1.0, NAN, ALL_STD_EXCEPT, FE_INVALID);
139 testall(INFINITY, 0.0, -0.0, NAN, ALL_STD_EXCEPT, FE_INVALID);
142 testall(INFINITY, 0.0, NAN, NAN, ALL_STD_EXCEPT & ~FE_INVALID, 0);
144 testall(INFINITY, INFINITY, -INFINITY, NAN,
146 testall(-INFINITY, INFINITY, INFINITY, NAN,
148 testall(INFINITY, -1.0, INFINITY, NAN,
165 testall(NAN, 0.0, 0.0, NAN, ALL_STD_EXCEPT, 0);
166 testall(1.0, NAN, 1.
[all...]
H A Dlogarithm_test.c112 testall0(NAN, NAN, ALL_STD_EXCEPT, 0);
113 testall1(NAN, NAN, ALL_STD_EXCEPT, 0);
120 testall0(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
121 testall1(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
122 testall0(-1.0, NAN, ALL_STD_EXCEPT, FE_INVALID);
123 testall1(-1.5, NAN, ALL_STD_EXCEPT, FE_INVALID);
H A Dnearbyint_test.c70 { NAN, { NAN, NAN, NAN }},
H A Dnext_test.c133 testall(NAN, 42.0, NAN, 0);
134 testall(42.0, NAN, NAN, 0);
135 testall(NAN, NAN, NAN, 0);
H A Dinvtrig_test.c137 testall(asin, INFINITY, NAN, FE_INVALID);
138 testall(acos, INFINITY, NAN, FE_INVALID);
140 testall(asin, -INFINITY, NAN, FE_INVALID);
141 testall(acos, -INFINITY, NAN, FE_INVALID);
144 testall(asin, NAN, NAN, 0);
145 testall(acos, NAN, NAN, 0);
146 testall(atan, NAN, NAN,
[all...]
H A Drem_test.c65 test_invalid(NAN, 1.0);
66 test_invalid(1.0, NAN);
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_isnan.c29 #ifdef NAN
30 /* NAN is meant to be a (float)NaN. */
31 ATF_CHECK(isnan(NAN) != 0);
32 ATF_CHECK(isnan((double)NAN) != 0);
/freebsd-12-stable/lib/libc/tests/gen/
H A Dfpclassify2_test.c45 ATF_CHECK(fpclassify(NAN) == FP_NAN);
54 ATF_CHECK(fpclassify((double)NAN) == FP_NAN);
63 ATF_CHECK(fpclassify((long double)NAN) == FP_NAN);
/freebsd-12-stable/tools/regression/usr.bin/cc/
H A Dfloat.c98 fpequal(d / d, NAN) && fpequal(0.0 * d, NAN));
128 vd = NAN;
129 test("NaN equality", fpequal(NAN, NAN) && NAN != NAN && vd != vd);
/freebsd-12-stable/lib/libc/tests/stdio/
H A Dprintfloat_test.c128 testfmt("nan", "%e", NAN);
129 testfmt("NAN", "%F", NAN);
130 testfmt("nan", "%g", NAN);
131 testfmt("NAN", "%LE", (long double)NAN);
132 testfmt(" nan", "%05e", NAN);
308 testfmt("nan", "%La", (long double)NAN);
309 testfmt("NAN", "%A", NAN);
[all...]
/freebsd-12-stable/contrib/gcc/config/arm/
H A Dieee754-sf.S72 1: @ Look for zeroes, equal values, INF, or NAN.
248 @ At least one of r0/r1 is INF/NAN.
249 @ if r0 != INF/NAN: return r1 (which is INF/NAN)
250 @ if r1 != INF/NAN: return r0 (which is INF/NAN)
251 @ if r0 or r1 is NAN: return NAN
252 @ if opposite sign: return NAN
262 orrne r0, r0, #0x00400000 @ quiet NAN
[all...]
H A Dieee754-df.S93 @ Look for zeroes, equal values, INF, or NAN.
360 @ At least one of x or y is INF/NAN.
361 @ if xh-xl != INF/NAN: return yh-yl (which is INF/NAN)
362 @ if yh-yl != INF/NAN: return xh-xl (which is INF/NAN)
363 @ if either is NAN: return NAN
364 @ if opposite sign: return NAN
376 orrne xh, xh, #0x00080000 @ quiet NAN
[all...]
/freebsd-12-stable/contrib/gcclibs/libiberty/
H A Dfloatformat.c21 /* This is needed to pick up the NAN macro on some systems. */
51 #ifndef NAN
53 #define NAN DBL_QNAN macro
55 #define NAN (0.0 / 0.0) macro
351 dto = NAN;
628 ieee_test (- NAN);
630 ieee_test (NAN);
/freebsd-12-stable/contrib/binutils/libiberty/
H A Dfloatformat.c21 /* This is needed to pick up the NAN macro on some systems. */
51 #ifndef NAN
53 #define NAN DBL_QNAN macro
55 #define NAN (0.0 / 0.0) macro
351 dto = NAN;
628 ieee_test (- NAN);
630 ieee_test (NAN);

Completed in 207 milliseconds

12