/freebsd-13-stable/contrib/netbsd-tests/lib/libm/ |
H A D | t_casinh.c | 29 { +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 D | t_ilogb.c | 115 ATF_CHECK(ilogbf(NAN) == FP_ILOGBNAN); 117 ATF_CHECK(ilogb(NAN) == FP_ILOGBNAN); 120 ATF_CHECK(ilogbl(NAN) == FP_ILOGBNAN);
|
/freebsd-13-stable/lib/msun/tests/ |
H A D | csqrt_test.c | 187 ATF_CHECK(creall(t_csqrt(CMPLXL(INFINITY, NAN))) == INFINITY); 188 ATF_CHECK(isnan(cimagl(t_csqrt(CMPLXL(INFINITY, NAN))))); 190 ATF_CHECK(isnan(creall(t_csqrt(CMPLXL(-INFINITY, NAN))))); 191 ATF_CHECK(isinf(cimagl(t_csqrt(CMPLXL(-INFINITY, NAN))))); 193 assert_equal(t_csqrt(CMPLXL(NAN, INFINITY)), 195 assert_equal(t_csqrt(CMPLXL(NAN, -INFINITY)), 198 assert_equal(t_csqrt(CMPLXL(0.0, NAN)), CMPLXL(NAN, NAN)); 199 assert_equal(t_csqrt(CMPLXL(-0.0, NAN)), CMPLX [all...] |
H A D | cexp_test.c | 127 testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN), 132 testall(CMPLXL(NAN, finites[i]), CMPLXL(NAN, NAN), 137 testall(CMPLXL(NAN, 0.0), CMPLXL(NAN, 0.0), ALL_STD_EXCEPT, 0, 1); 138 testall(CMPLXL(NAN, -0.0), CMPLXL(NAN, [all...] |
H A D | invctrig_test.c | 149 long double complex nan_nan = CMPLXL(NAN, NAN); 172 z = CMPLXL(0.5, NAN); 180 z = CMPLXL(NAN, 0.5); 188 z = CMPLXL(NAN, INFINITY); 189 testall(cacosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL); 190 testall(cacosh, -z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL); 191 testall(cacos, z, CMPLXL(NAN, -INFINITY), ALL_STD_EXCEPT, 0, CS_IMAG); 192 testall(casinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0); 193 testall(casin, z, CMPLXL(NAN, INFINIT [all...] |
H A D | ctrig_test.c | 158 long double complex nan_nan = CMPLXL(NAN, NAN); 179 z = CMPLXL(42, NAN); 188 z = CMPLXL(NAN, 42); 197 z = CMPLXL(NAN, INFINITY); 201 testall_odd(csin, z, CMPLXL(NAN, INFINITY), ALL_STD_EXCEPT, 0, 0); 202 testall_even(ccos, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 206 z = CMPLXL(INFINITY, NAN); 207 testall_odd(csinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0); 208 testall_even(ccosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEP [all...] |
H A D | ilogb_test.c | 45 ATF_CHECK_EQ(FP_ILOGBNAN, ilogb(NAN)); 64 ATF_CHECK_EQ(FP_ILOGBNAN, ilogbf(NAN)); 84 ATF_CHECK_EQ(FP_ILOGBNAN, ilogbl(NAN));
|
H A D | trig_test.c | 101 testall(tan, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 102 testall(sin, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 103 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 104 testall(tan, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 105 testall(sin, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 106 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 109 testall(tan, NAN, NAN, ALL_STD_EXCEPT, 0); 110 testall(sin, NAN, NAN, ALL_STD_EXCEP [all...] |
H A D | conj_test.c | 66 NAN, 1.0, 67 1.0, NAN, 68 NAN, NAN,
|
H A D | fma_test.c | 137 testall(0.0, INFINITY, 1.0, NAN, ALL_STD_EXCEPT, FE_INVALID); 138 testall(INFINITY, 0.0, -0.0, NAN, ALL_STD_EXCEPT, FE_INVALID); 141 testall(INFINITY, 0.0, NAN, NAN, ALL_STD_EXCEPT & ~FE_INVALID, 0); 143 testall(INFINITY, INFINITY, -INFINITY, NAN, 145 testall(-INFINITY, INFINITY, INFINITY, NAN, 147 testall(INFINITY, -1.0, INFINITY, NAN, 163 testall(NAN, 0.0, 0.0, NAN, ALL_STD_EXCEPT, 0); 164 testall(1.0, NAN, 1. [all...] |
H A D | exponential_test.c | 103 testall0(NAN, NAN, ALL_STD_EXCEPT, 0); 104 testall1(NAN, NAN, ALL_STD_EXCEPT, 0);
|
H A D | fmaxmin_test.c | 129 testall(1.0, NAN); 134 testall(INFINITY, NAN); 158 testall(NAN, NAN);
|
H A D | nearbyint_test.c | 67 { NAN, { NAN, NAN, NAN }},
|
H A D | logarithm_test.c | 105 testall0(NAN, NAN, ALL_STD_EXCEPT, 0); 106 testall1(NAN, NAN, ALL_STD_EXCEPT, 0); 113 testall0(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 114 testall1(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 115 testall0(-1.0, NAN, ALL_STD_EXCEPT, FE_INVALID); 116 testall1(-1.5, NAN, ALL_STD_EXCEPT, FE_INVALID);
|
H A D | next_test.c | 135 testall(NAN, 42.0, NAN, 0); 136 testall(42.0, NAN, NAN, 0); 137 testall(NAN, NAN, NAN, 0);
|
H A D | invtrig_test.c | 138 testall(asin, INFINITY, NAN, FE_INVALID); 139 testall(acos, INFINITY, NAN, FE_INVALID); 141 testall(asin, -INFINITY, NAN, FE_INVALID); 142 testall(acos, -INFINITY, NAN, FE_INVALID); 145 testall(asin, NAN, NAN, 0); 146 testall(acos, NAN, NAN, 0); 147 testall(atan, NAN, NAN, [all...] |
H A D | rem_test.c | 63 test_invalid(NAN, 1.0); 64 test_invalid(1.0, NAN);
|
H A D | lrint_test.c | 84 testall(NAN, IGNORE, FE_INVALID);
|
H A D | lround_test.c | 83 testall(NAN, IGNORE, FE_INVALID);
|
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_isnan.c | 29 #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-13-stable/lib/libc/tests/gen/ |
H A D | fpclassify2_test.c | 45 ATF_CHECK(fpclassify(NAN) == FP_NAN); 54 ATF_CHECK(fpclassify((double)NAN) == FP_NAN); 63 ATF_CHECK(fpclassify((long double)NAN) == FP_NAN);
|
/freebsd-13-stable/tools/regression/usr.bin/cc/ |
H A D | float.c | 98 fpequal(d / d, NAN) && fpequal(0.0 * d, NAN)); 128 vd = NAN; 129 test("NaN equality", fpequal(NAN, NAN) && NAN != NAN && vd != vd);
|
/freebsd-13-stable/lib/libc/tests/stdio/ |
H A D | printfloat_test.c | 128 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-13-stable/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_printf.c | 186 ATF_CHECK(sprintf(str, "%010f", NAN) == 10);
|
/freebsd-13-stable/lib/msun/src/ |
H A D | math.h | 59 #define NAN __builtin_nanf("") macro 64 #define NAN (__nan.__uf) macro
|