/freebsd/lib/msun/tests/ |
H A D | next_test.c | 111 test##prec(next(0.0, INFINITY), eps, ex_under); \ in ATF_TC_BODY() 112 test##prec(next(-0.0, -INFINITY), -eps, ex_under) in ATF_TC_BODY() 131 testall(INFINITY, INFINITY, INFINITY, 0); in ATF_TC_BODY() 132 testall(-INFINITY, -INFINITY, -INFINITY, 0); in ATF_TC_BODY() 145 testboth(1.0, -INFINITY, 1.0 - DBL_EPSILON / 2, 0, ); in ATF_TC_BODY() 147 testboth(1.0, -INFINITY, 1.0 - FLT_EPSILON / 2, 0, f); in ATF_TC_BODY() 149 testboth(1.0, -INFINITY, 1.0 - ldbl_eps / 2, 0, l); in ATF_TC_BODY() 152 testboth(-1.0, -INFINITY, -1.0 - DBL_EPSILON, 0, ); in ATF_TC_BODY() 154 testboth(-1.0, -INFINITY, -1.0 - FLT_EPSILON, 0, f); in ATF_TC_BODY() 156 testboth(-1.0, -INFINITY, -1.0 - ldbl_eps, 0, l); in ATF_TC_BODY() [all …]
|
H A D | cexp_test.c | 138 testall(CMPLXL(INFINITY, NAN), CMPLXL(INFINITY, NAN), in ATF_TC_BODY() 141 testall(CMPLXL(-INFINITY, NAN), CMPLXL(0.0, 0.0), in ATF_TC_BODY() 155 testall(CMPLXL(finites[i], INFINITY), CMPLXL(NAN, NAN), in ATF_TC_BODY() 160 testall(CMPLXL(-INFINITY, M_PI_4), CMPLXL(0.0, 0.0), in ATF_TC_BODY() 162 testall(CMPLXL(-INFINITY, 3 * M_PI_4), CMPLXL(-0.0, 0.0), in ATF_TC_BODY() 164 testall(CMPLXL(-INFINITY, 5 * M_PI_4), CMPLXL(-0.0, -0.0), in ATF_TC_BODY() 166 testall(CMPLXL(-INFINITY, 7 * M_PI_4), CMPLXL(0.0, -0.0), in ATF_TC_BODY() 168 testall(CMPLXL(-INFINITY, 0.0), CMPLXL(0.0, 0.0), in ATF_TC_BODY() 170 testall(CMPLXL(-INFINITY, -0.0), CMPLXL(0.0, -0.0), in ATF_TC_BODY() 174 testall(CMPLXL(INFINITY, M_PI_4), CMPLXL(INFINITY, INFINITY), in ATF_TC_BODY() [all …]
|
H A D | fma_test.c | 124 testall(INFINITY, 1.0, -1.0, INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 125 testall(-1.0, INFINITY, 0.0, -INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 126 testall(0.0, 0.0, INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 127 testall(1.0, 1.0, INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 128 testall(1.0, 1.0, -INFINITY, -INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 130 testall(INFINITY, -INFINITY, 1.0, -INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 131 testall(INFINITY, INFINITY, 1.0, INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 132 testall(-INFINITY, -INFINITY, INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in test_infinities() 134 testall(0.0, INFINITY, 1.0, NAN, ALL_STD_EXCEPT, FE_INVALID); in test_infinities() 135 testall(INFINITY, 0.0, -0.0, NAN, ALL_STD_EXCEPT, FE_INVALID); in test_infinities() [all …]
|
H A D | csqrt_test.c | 157 INFINITY, in test_infinities() 158 -INFINITY, in test_infinities() 165 assert_equal(t_csqrt(CMPLXL(-INFINITY, vals[i])), in test_infinities() 166 CMPLXL(0.0, copysignl(INFINITY, vals[i]))); in test_infinities() 167 assert_equal(t_csqrt(CMPLXL(INFINITY, vals[i])), in test_infinities() 168 CMPLXL(INFINITY, copysignl(0.0, vals[i]))); in test_infinities() 170 assert_equal(t_csqrt(CMPLXL(vals[i], INFINITY)), in test_infinities() 171 CMPLXL(INFINITY, INFINITY)); in test_infinities() 172 assert_equal(t_csqrt(CMPLXL(vals[i], -INFINITY)), in test_infinities() 173 CMPLXL(INFINITY, -INFINITY)); in test_infinities() [all …]
|
H A D | invctrig_test.c | 185 z = CMPLXL(NAN, INFINITY); in ATF_TC_BODY() 186 testall(cacosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY() 187 testall(cacosh, -z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY() 188 testall(cacos, z, CMPLXL(NAN, -INFINITY), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY() 189 testall(casinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY() 190 testall(casin, z, CMPLXL(NAN, INFINITY), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY() 194 z = CMPLXL(INFINITY, NAN); in ATF_TC_BODY() 195 testall_even(cacosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, in ATF_TC_BODY() 197 testall_even(cacos, z, CMPLXL(NAN, INFINITY), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY() 198 testall_odd(casinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, in ATF_TC_BODY() [all …]
|
H A D | invtrig_test.c | 136 testall(asin, INFINITY, NAN, FE_INVALID); in ATF_TC_BODY() 137 testall(acos, INFINITY, NAN, FE_INVALID); in ATF_TC_BODY() 138 testall(atan, INFINITY, pi / 2, FE_INEXACT); in ATF_TC_BODY() 139 testall(asin, -INFINITY, NAN, FE_INVALID); in ATF_TC_BODY() 140 testall(acos, -INFINITY, NAN, FE_INVALID); in ATF_TC_BODY() 141 testall(atan, -INFINITY, -pi / 2, FE_INEXACT); in ATF_TC_BODY() 163 testall2(atan2, INFINITY, -INFINITY, c3pi / 4, FE_INEXACT); in ATF_TC_BODY() 164 testall2(atan2, -INFINITY, -INFINITY, -c3pi / 4, FE_INEXACT); in ATF_TC_BODY() 165 testall2(atan2, INFINITY, INFINITY, pi / 4, FE_INEXACT); in ATF_TC_BODY() 166 testall2(atan2, -INFINITY, INFINITY, -pi / 4, FE_INEXACT); in ATF_TC_BODY() [all …]
|
H A D | ctrig_test.c | 194 z = CMPLXL(NAN, INFINITY); in ATF_TC_BODY() 198 testall_odd(csin, z, CMPLXL(NAN, INFINITY), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY() 199 testall_even(ccos, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, in ATF_TC_BODY() 203 z = CMPLXL(INFINITY, NAN); in ATF_TC_BODY() 204 testall_odd(csinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY() 205 testall_even(ccosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, in ATF_TC_BODY() 249 z = CMPLXL(INFINITY, INFINITY); in ATF_TC_BODY() 250 testall_odd(csinh, z, CMPLXL(INFINITY, NAN), in ATF_TC_BODY() 252 testall_even(ccosh, z, CMPLXL(INFINITY, NAN), in ATF_TC_BODY() 255 testall_odd(csin, z, CMPLXL(NAN, INFINITY), in ATF_TC_BODY() [all …]
|
H A D | exponential_test.c | 105 testall0(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in run_generic_tests() 106 testall1(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in run_generic_tests() 109 testall0(-INFINITY, 0.0, ALL_STD_EXCEPT, 0); in run_generic_tests() 110 testall1(-INFINITY, -1.0, ALL_STD_EXCEPT, 0); in run_generic_tests() 114 testall0(50000.0, INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_OVERFLOW); in run_generic_tests() 115 testall1(50000.0, INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_OVERFLOW); in run_generic_tests()
|
H A D | logarithm_test.c | 106 testall0(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in ATF_TC_BODY() 107 testall1(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in ATF_TC_BODY() 110 testall0(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 111 testall1(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 116 testall0(0.0, -INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_DIVBYZERO); in ATF_TC_BODY() 117 testall0(-0.0, -INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_DIVBYZERO); in ATF_TC_BODY() 118 testall1(-1.0, -INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_DIVBYZERO); in ATF_TC_BODY()
|
H A D | conj_test.c | 61 0.0, INFINITY, 62 0.0, -INFINITY, 63 INFINITY, 0.0, 67 -INFINITY, INFINITY,
|
H A D | fmaxmin_test.c | 104 testall(42.0, nextafterf(42.0, -INFINITY)); in ATF_TC_BODY() 109 testall(nextafterf(42.0, INFINITY), 42.0); in ATF_TC_BODY() 132 testall(INFINITY, NAN); in ATF_TC_BODY() 138 testall(INFINITY, 1.0); in ATF_TC_BODY() 144 testall(-3.0, -INFINITY); in ATF_TC_BODY() 150 testall(3.0, -INFINITY); in ATF_TC_BODY()
|
H A D | trig_test.c | 98 testall(tan, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 99 testall(sin, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 100 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 101 testall(tan, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 102 testall(sin, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 103 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
|
H A D | nearbyint_test.c | 63 { INFINITY, { INFINITY, INFINITY, INFINITY }},
|
H A D | ilogb_test.c | 44 ATF_CHECK_EQ(INT_MAX, ilogb(INFINITY)); in ATF_TC_BODY() 63 ATF_CHECK_EQ(INT_MAX, ilogbf(INFINITY)); in ATF_TC_BODY() 83 ATF_CHECK_EQ(INT_MAX, ilogbl(INFINITY)); in ATF_TC_BODY()
|
H A D | rem_test.c | 57 test_invalid(INFINITY, 0.0); in ATF_TC_BODY() 58 test_invalid(INFINITY, 1.0); in ATF_TC_BODY() 59 test_invalid(-INFINITY, 1.0); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libm/ |
H A D | t_casinh.c | 25 { +5.032E3, +INFINITY, +INFINITY, +M_PI/2}, 26 { +INFINITY, +5.023E3, +INFINITY, +0}, 27 { +INFINITY, +INFINITY, +INFINITY, +M_PI/4}, 29 { +INFINITY, +NAN, +INFINITY, +NAN}, 33 { +NAN, +INFINITY, +INFINITY, +NAN}, /* sign of real part of result unspecified */
|
H A D | t_ilogb.c | 87 ATF_CHECK(ilogbf(INFINITY) == INT_MAX); in ATF_TC_BODY() 89 ATF_CHECK(ilogb(INFINITY) == INT_MAX); in ATF_TC_BODY() 92 ATF_CHECK(ilogbl(INFINITY) == INT_MAX); in ATF_TC_BODY() 96 ATF_CHECK(ilogbf(-INFINITY) == INT_MAX); in ATF_TC_BODY() 98 ATF_CHECK(ilogb(-INFINITY) == INT_MAX); in ATF_TC_BODY() 101 ATF_CHECK(ilogbl(-INFINITY) == INT_MAX); in ATF_TC_BODY()
|
H A D | t_bit.c | 24 #ifdef INFINITY 25 { -INFINITY, true}, 26 { INFINITY, false},
|
/freebsd/lib/msun/ld80/ |
H A D | e_powl.c | 272 return( INFINITY ); in powl() 276 return( INFINITY ); in powl() 285 return( INFINITY ); in powl() 289 return( INFINITY ); in powl() 294 return( INFINITY ); in powl() 320 return( -INFINITY ); in powl() 321 return( INFINITY ); in powl() 340 return( -INFINITY ); in powl() 341 return( INFINITY ); in powl()
|
/freebsd/contrib/ncurses/ncurses/tty/ |
H A D | lib_mvcur.c | 226 return (INFINITY); in NCURSES_SP_NAME() 290 if (cost != INFINITY) in normalized_cost() 373 SP_PARM->_ht_cost = INFINITY; in NCURSES_SP_NAME() 374 SP_PARM->_cbt_cost = INFINITY; in NCURSES_SP_NAME() 546 total = INFINITY; in repeated_append() 551 total = INFINITY; in repeated_append() 581 vcost = INFINITY; in relative_move() 620 if (vcost == INFINITY) in relative_move() 621 return (INFINITY); in relative_move() 630 hcost = INFINITY; in relative_move() [all …]
|
/freebsd/contrib/arm-optimized-routines/pl/math/ |
H A D | finite_pow.h | 165 double res_uoflow = asuint64 (x) >> 63 ? 0.0 : INFINITY; in exp_inline() 215 return asuint64 (x) >> 63 ? 0.0 : INFINITY; in exp_nosignbias() 266 return 2 * i - 1 >= 2 * asuint64 (INFINITY) - 1; in zeroinfnan() 293 if (2 * ix > 2 * asuint64 (INFINITY) in __pl_finite_pow() 294 || 2 * iy > 2 * asuint64 (INFINITY)) in __pl_finite_pow() 346 return (ix > asuint64 (1.0)) == (topy < 0x800) ? INFINITY : 0; in __pl_finite_pow()
|
H A D | expf.c | 46 if (asuint (x) == asuint (-INFINITY)) in optr_aor_exp_f32() 48 if (abstop >= top12 (INFINITY)) in optr_aor_exp_f32()
|
/freebsd/tools/regression/usr.bin/cc/ |
H A D | float.c | 141 vd = INFINITY; in run_tests() 145 vd = INFINITY; in run_tests() 165 x = (int)INFINITY; in run_tests()
|
/freebsd/contrib/libcbor/test/ |
H A D | float_ctrl_encoders_test.c | 115 assert_size_equal(3, cbor_encode_half(INFINITY, buffer, 512)); in test_half() 135 assert_size_equal(3, cbor_encode_half(INFINITY, buffer, 512)); in test_half_infinity() 139 assert_size_equal(3, cbor_encode_half(-INFINITY, buffer, 512)); in test_half_infinity()
|
/freebsd/contrib/arm-optimized-routines/math/ |
H A D | exp2f.c | 46 if (asuint (x) == asuint (-INFINITY)) in exp2f() 48 if (abstop >= top12 (INFINITY)) in exp2f()
|