/freebsd/lib/msun/tests/ |
H A D | cexp_test.c | 108 testall(CMPLXL(0.0, -0.0), CMPLXL(1.0, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY() 109 testall(CMPLXL(-0.0, -0.0), CMPLXL(1.0, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY() 124 testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN), in ATF_TC_BODY() 129 testall(CMPLXL(NAN, finites[i]), CMPLXL(NAN, NAN), in ATF_TC_BODY() 134 testall(CMPLXL(NAN, 0.0), CMPLXL(NAN, 0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY() 135 testall(CMPLXL(NAN, -0.0), CMPLXL(NAN, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY() 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() 144 testall(CMPLXL(NAN, NAN), CMPLXL(NAN, NAN), in ATF_TC_BODY() 155 testall(CMPLXL(finites[i], INFINITY), CMPLXL(NAN, NAN), in ATF_TC_BODY() [all …]
|
H A D | ctrig_test.c | 137 long double complex zero = CMPLXL(0.0, 0.0); in ATF_TC_BODY() 143 testall_even(ccos, zero, CMPLXL(1.0, -0.0), ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY() 155 long double complex nan_nan = CMPLXL(NAN, NAN); in ATF_TC_BODY() 176 z = CMPLXL(42, NAN); in ATF_TC_BODY() 185 z = CMPLXL(NAN, 42); in ATF_TC_BODY() 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() 201 testall_odd(ctan, z, CMPLXL(0, 1), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY() 203 z = CMPLXL(INFINITY, NAN); in ATF_TC_BODY() [all …]
|
H A D | csqrt_test.c | 127 ATF_CHECK(t_csqrt(CMPLXL(a, b)) == CMPLXL(x, y)); in test_finite() 140 assert_equal(t_csqrt(CMPLXL(0.0, 0.0)), CMPLXL(0.0, 0.0)); in test_zeros() 141 assert_equal(t_csqrt(CMPLXL(-0.0, 0.0)), CMPLXL(0.0, 0.0)); in test_zeros() 142 assert_equal(t_csqrt(CMPLXL(0.0, -0.0)), CMPLXL(0.0, -0.0)); in test_zeros() 143 assert_equal(t_csqrt(CMPLXL(-0.0, -0.0)), CMPLXL(0.0, -0.0)); in test_zeros() 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() [all …]
|
H A D | invctrig_test.c | 126 long double complex zero = CMPLXL(0.0, 0.0); in ATF_TC_BODY() 128 testall_tol(cacosh, zero, CMPLXL(0.0, pi / 2), 1); in ATF_TC_BODY() 129 testall_tol(cacosh, -zero, CMPLXL(0.0, -pi / 2), 1); in ATF_TC_BODY() 130 testall_tol(cacos, zero, CMPLXL(pi / 2, -0.0), 1); in ATF_TC_BODY() 131 testall_tol(cacos, -zero, CMPLXL(pi / 2, 0.0), 1); in ATF_TC_BODY() 146 long double complex nan_nan = CMPLXL(NAN, NAN); in ATF_TC_BODY() 169 z = CMPLXL(0.5, NAN); in ATF_TC_BODY() 177 z = CMPLXL(NAN, 0.5); in ATF_TC_BODY() 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() [all …]
|
H A D | test-utils.h | 80 #ifndef CMPLXL 82 CMPLXL(long double x, long double y) in CMPLXL() function
|
/freebsd/lib/msun/src/ |
H A D | catrigl.c | 177 return (CMPLXL(x, y + y)); in casinhl() 179 return (CMPLXL(y, x + x)); in casinhl() 181 return (CMPLXL(x + x, y)); in casinhl() 182 return (CMPLXL(nan_mix(x, y), nan_mix(x, y))); in casinhl() 190 return (CMPLXL(copysignl(creall(w), x), in casinhl() 207 return (CMPLXL(copysignl(rx, x), copysignl(ry, y))); in casinhl() 215 w = casinhl(CMPLXL(cimagl(z), creall(z))); in casinl() 216 return (CMPLXL(cimagl(w), creall(w))); in casinl() 236 return (CMPLXL(y + y, -INFINITY)); in cacosl() 238 return (CMPLXL(x + x, -y)); in cacosl() [all …]
|
H A D | s_clogl.c | 86 RETURNI(CMPLXL(logl(hypotl(x, y)), v)); in clogl() 91 RETURNI(CMPLXL((ay / 2) * ay, v)); in clogl() 92 RETURNI(CMPLXL(log1pl(ay * ay) / 2, v)); in clogl() 97 RETURNI(CMPLXL(logl(ax), v)); in clogl() 101 RETURNI(CMPLXL(logl(hypotl(x * 0x1p-16382L, y * 0x1p-16382L)) + in clogl() 104 RETURNI(CMPLXL(logl(hypotl(x, y)), v)); in clogl() 108 RETURNI(CMPLXL(logl(hypotl(x * 0x1p16383L, y * 0x1p16383L)) + in clogl() 113 RETURNI(CMPLXL(logl(hypotl(x, y)), v)); in clogl() 155 RETURNI(CMPLXL(logl(ay2l + ax2l + sl + sh) / 2, v)); in clogl() 164 RETURNI(CMPLXL(log1pl(ay2l + t + sh) / 2, v)); in clogl()
|
H A D | s_csqrtl.c | 64 return (CMPLXL(0, b)); in csqrtl() 66 return (CMPLXL(INFINITY, b)); in csqrtl() 69 return (CMPLXL(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrtl() 79 return (CMPLXL(fabsl(b - b), copysignl(a, b))); in csqrtl() 81 return (CMPLXL(a, copysignl(b - b, b))); in csqrtl() 85 return (CMPLXL(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrtl() 122 return (CMPLXL(rx, ry)); in csqrtl()
|
H A D | s_cpowl.c | 60 return (CMPLXL(0.0L, 0.0L)); in cpowl() 69 w = CMPLXL(r * cosl(theta), r * sinl(theta)); in cpowl()
|
H A D | s_conjl.c | 37 return (CMPLXL(creall(z), -cimagl(z))); in conjl()
|
H A D | s_cprojl.c | 41 return (CMPLXL(INFINITY, copysignl(0.0, cimagl(z)))); in cprojl()
|
H A D | math_private.h | 565 #ifndef CMPLXL 567 CMPLXL(long double x, long double y) in CMPLXL() function
|
/freebsd/lib/msun/ld128/ |
H A D | s_cexpl.c | 53 return (CMPLXL(expl(x), y)); in cexpl() 57 return (CMPLXL(c, s)); in cexpl() 63 return (CMPLXL(y - y, y - y)); in cexpl() 66 return (CMPLXL(0.0, 0.0)); in cexpl() 69 return (CMPLXL(x, y - y)); in cexpl() 89 return (CMPLXL(exp_x * c, exp_x * s)); in cexpl()
|
H A D | k_expl.h | 318 return (CMPLXL(c * exp_x * scale1 * scale2, in __ldexp_cexpl()
|
/freebsd/lib/msun/ld80/ |
H A D | s_cexpl.c | 59 RETURNI(CMPLXL(expl(x), y)); in cexpl() 64 RETURNI(CMPLXL(c, s)); in cexpl() 71 RETURNI(CMPLXL(y - y, y - y)); in cexpl() 74 RETURNI(CMPLXL(0.0, 0.0)); in cexpl() 77 RETURNI(CMPLXL(x, y - y)); in cexpl() 102 RETURNI(CMPLXL(exp_x * c, exp_x * s)); in cexpl()
|
H A D | k_expl.h | 295 return (CMPLXL(c * exp_x * scale1 * scale2, in __ldexp_cexpl()
|
/freebsd/include/ |
H A D | complex.h | 53 #define CMPLXL(x, y) ((long double complex){ x, y }) macro 57 #define CMPLXL(x, y) __builtin_complex((long double)(x), (long double)(y)) macro
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/ |
H A D | CSymbolMap.inc | 31 SYMBOL(CMPLXL, None, <complex.h>)
|