Lines Matching refs:z

56 #define test_p(func, z, result, exceptmask, excepts, checksign)			\  argument
58 volatile long double complex _d = z; \
74 #define test_p_tol(func, z, result, tol) do { \ argument
76 creall(z), cimagl(z), creall(result), cimagl(result)); \
77 CHECK_CFPEQUAL_TOL((func)(z), (result), (tol), FPE_ABS_ZERO); \
81 #define test(func, z, result, exceptmask, excepts, checksign) do { \ argument
82 test_p(func, z, result, exceptmask, excepts, checksign); \
83 test_p(func, conjl(z), conjl(result), exceptmask, excepts, checksign); \
85 #define test_tol(func, z, result, tol) do { \ argument
86 test_p_tol(func, z, result, tol); \
87 test_p_tol(func, conjl(z), conjl(result), tol); \
89 #define test_odd_tol(func, z, result, tol) do { \ argument
90 test_tol(func, z, result, tol); \
91 test_tol(func, -(z), -(result), tol); \
93 #define test_even_tol(func, z, result, tol) do { \ argument
94 test_tol(func, z, result, tol); \
95 test_tol(func, -(z), result, tol); \
156 long double complex z; in ATF_TC_BODY() local
168 z = nan_nan; in ATF_TC_BODY()
169 testall_odd(csinh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
170 testall_even(ccosh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
171 testall_odd(ctanh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
172 testall_odd(csin, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
173 testall_even(ccos, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
174 testall_odd(ctan, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
176 z = CMPLXL(42, NAN); in ATF_TC_BODY()
177 testall_odd(csinh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
178 testall_even(ccosh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
180 testall_odd(ctanh, z, nan_nan, OPT_INVALID & ~FE_INEXACT, 0, 0); in ATF_TC_BODY()
181 testall_odd(csin, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
182 testall_even(ccos, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
183 testall_odd(ctan, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
185 z = CMPLXL(NAN, 42); in ATF_TC_BODY()
186 testall_odd(csinh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
187 testall_even(ccosh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
188 testall_odd(ctanh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
189 testall_odd(csin, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
190 testall_even(ccos, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
192 testall_odd(ctan, z, nan_nan, OPT_INVALID & ~FE_INEXACT, 0, 0); in ATF_TC_BODY()
194 z = CMPLXL(NAN, INFINITY); in ATF_TC_BODY()
195 testall_odd(csinh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
196 testall_even(ccosh, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
197 testall_odd(ctanh, z, nan_nan, OPT_INVALID, 0, 0); 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()
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()
207 testall_odd(ctanh, z, CMPLXL(1, 0), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
208 testall_odd(csin, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
209 testall_even(ccos, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
210 testall_odd(ctan, z, nan_nan, OPT_INVALID, 0, 0); in ATF_TC_BODY()
212 z = CMPLXL(0, NAN); in ATF_TC_BODY()
213 testall_odd(csinh, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
214 testall_even(ccosh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
215 testall_odd(ctanh, z, CMPLXL(0, NAN), OPT_INVALID, 0, CS_REAL); in ATF_TC_BODY()
216 testall_odd(csin, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
217 testall_even(ccos, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
218 testall_odd(ctan, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
220 z = CMPLXL(NAN, 0); in ATF_TC_BODY()
221 testall_odd(csinh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY()
222 testall_even(ccosh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
223 testall_odd(ctanh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY()
224 testall_odd(csin, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
225 testall_even(ccos, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
226 testall_odd(ctan, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY()
239 long double complex z, c, s; in ATF_TC_BODY() local
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()
254 testall_odd(ctanh, z, CMPLXL(1, 0), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
255 testall_odd(csin, z, CMPLXL(NAN, INFINITY), in ATF_TC_BODY()
257 testall_even(ccos, z, CMPLXL(INFINITY, NAN), in ATF_TC_BODY()
259 testall_odd(ctan, z, CMPLXL(0, 1), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
263 z = CMPLXL(INFINITY, finites[i]); in ATF_TC_BODY()
266 testall_odd(csinh, z, CMPLXL(c, s), OPT_INEXACT, 0, CS_BOTH); in ATF_TC_BODY()
267 testall_even(ccosh, z, CMPLXL(c, s), OPT_INEXACT, 0, CS_BOTH); in ATF_TC_BODY()
268 testall_odd(ctanh, z, CMPLXL(1, 0 * sin(finites[i] * 2)), in ATF_TC_BODY()
270 z = CMPLXL(finites[i], INFINITY); in ATF_TC_BODY()
271 testall_odd(csin, z, CMPLXL(s, c), OPT_INEXACT, 0, CS_BOTH); in ATF_TC_BODY()
272 testall_even(ccos, z, CMPLXL(c, -s), OPT_INEXACT, 0, CS_BOTH); in ATF_TC_BODY()
273 testall_odd(ctan, z, CMPLXL(0 * sin(finites[i] * 2), 1), in ATF_TC_BODY()
277 z = CMPLXL(0, INFINITY); in ATF_TC_BODY()
278 testall_odd(csinh, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
279 testall_even(ccosh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
280 testall_odd(ctanh, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, FE_INVALID, CS_REAL); in ATF_TC_BODY()
281 z = CMPLXL(INFINITY, 0); in ATF_TC_BODY()
282 testall_odd(csin, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
283 testall_even(ccos, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
284 testall_odd(ctan, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, CS_IMAG); in ATF_TC_BODY()
286 z = CMPLXL(42, INFINITY); in ATF_TC_BODY()
287 testall_odd(csinh, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
288 testall_even(ccosh, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
290 testall_odd(ctanh, z, CMPLXL(NAN, NAN), OPT_INEXACT, FE_INVALID, 0); in ATF_TC_BODY()
291 z = CMPLXL(INFINITY, 42); in ATF_TC_BODY()
292 testall_odd(csin, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
293 testall_even(ccos, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in ATF_TC_BODY()
295 testall_odd(ctan, z, CMPLXL(NAN, NAN), OPT_INEXACT, FE_INVALID, 0); in ATF_TC_BODY()
309 long double complex z; in ATF_TC_BODY() local
314 z = CMPLXL(nums[i], 0.0); in ATF_TC_BODY()
315 test_odd_tol(csinh, z, CMPLXL(sinh(nums[i]), 0), DBL_ULP()); in ATF_TC_BODY()
316 test_even_tol(ccosh, z, CMPLXL(cosh(nums[i]), 0), DBL_ULP()); in ATF_TC_BODY()
317 test_odd_tol(ctanh, z, CMPLXL(tanh(nums[i]), 0), DBL_ULP()); in ATF_TC_BODY()
318 test_odd_tol(csin, z, CMPLXL(sin(nums[i]), in ATF_TC_BODY()
320 test_even_tol(ccos, z, CMPLXL(cos(nums[i]), in ATF_TC_BODY()
322 test_odd_tol(ctan, z, CMPLXL(tan(nums[i]), 0), DBL_ULP()); in ATF_TC_BODY()
324 test_odd_tol(csinhf, z, CMPLXL(sinhf(nums[i]), 0), FLT_ULP()); in ATF_TC_BODY()
325 test_even_tol(ccoshf, z, CMPLXL(coshf(nums[i]), 0), FLT_ULP()); in ATF_TC_BODY()
326 printf("%a %a\n", creal(z), cimag(z)); in ATF_TC_BODY()
327 printf("%a %a\n", creal(ctanhf(z)), cimag(ctanhf(z))); in ATF_TC_BODY()
329 test_odd_tol(ctanhf, z, CMPLXL(tanhf(nums[i]), 0), in ATF_TC_BODY()
331 test_odd_tol(csinf, z, CMPLXL(sinf(nums[i]), in ATF_TC_BODY()
333 test_even_tol(ccosf, z, CMPLXL(cosf(nums[i]), in ATF_TC_BODY()
335 test_odd_tol(ctanf, z, CMPLXL(tanf(nums[i]), 0), FLT_ULP()); in ATF_TC_BODY()
338 z = CMPLXL(0.0, nums[i]); in ATF_TC_BODY()
339 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])), in ATF_TC_BODY()
341 test_even_tol(ccosh, z, CMPLXL(cos(nums[i]), in ATF_TC_BODY()
343 test_odd_tol(ctanh, z, CMPLXL(0, tan(nums[i])), DBL_ULP()); in ATF_TC_BODY()
344 test_odd_tol(csin, z, CMPLXL(0, sinh(nums[i])), DBL_ULP()); in ATF_TC_BODY()
345 test_even_tol(ccos, z, CMPLXL(cosh(nums[i]), -0.0), DBL_ULP()); in ATF_TC_BODY()
346 test_odd_tol(ctan, z, CMPLXL(0, tanh(nums[i])), DBL_ULP()); in ATF_TC_BODY()
348 test_odd_tol(csinhf, z, CMPLXL(copysign(0, cosf(nums[i])), in ATF_TC_BODY()
350 test_even_tol(ccoshf, z, CMPLXL(cosf(nums[i]), in ATF_TC_BODY()
352 test_odd_tol(ctanhf, z, CMPLXL(0, tanf(nums[i])), FLT_ULP()); in ATF_TC_BODY()
353 test_odd_tol(csinf, z, CMPLXL(0, sinhf(nums[i])), FLT_ULP()); in ATF_TC_BODY()
354 test_even_tol(ccosf, z, CMPLXL(coshf(nums[i]), -0.0), in ATF_TC_BODY()
356 test_odd_tol(ctanf, z, CMPLXL(0, tanhf(nums[i])), in ATF_TC_BODY()
413 long double complex z; in ATF_TC_BODY() local
417 z = CMPLXL(tests[i].a, tests[i].b); in ATF_TC_BODY()
418 testall_odd_tol(csinh, z, in ATF_TC_BODY()
420 testall_even_tol(ccosh, z, in ATF_TC_BODY()
422 testall_odd_tol(ctanh, z, in ATF_TC_BODY()
435 long double complex z; in ATF_TC_BODY() local
438 z = CMPLXL(21, 0.78539816339744830961566084581987572L); in ATF_TC_BODY()
439 testall_odd_tol(ctanh, z, in ATF_TC_BODY()
441 z++; in ATF_TC_BODY()
442 testall_odd_tol(ctanh, z, in ATF_TC_BODY()
445 z = CMPLXL(355, 0.78539816339744830961566084581987572L); in ATF_TC_BODY()
446 test_odd_tol(ctanh, z, in ATF_TC_BODY()
449 z = CMPLXL(30, 0x1p1023L); in ATF_TC_BODY()
450 test_odd_tol(ctanh, z, in ATF_TC_BODY()
453 z = CMPLXL(1, 0x1p1023L); in ATF_TC_BODY()
454 test_odd_tol(ctanh, z, in ATF_TC_BODY()
459 z = CMPLXL(710.6, 0.78539816339744830961566084581987572L); in ATF_TC_BODY()
460 test_odd_tol(csinh, z, in ATF_TC_BODY()
463 test_even_tol(ccosh, z, in ATF_TC_BODY()
467 z = CMPLXL(1500, 0.78539816339744830961566084581987572L); in ATF_TC_BODY()
468 testall_odd(csinh, z, CMPLXL(INFINITY, INFINITY), OPT_INEXACT, in ATF_TC_BODY()
470 testall_even(ccosh, z, CMPLXL(INFINITY, INFINITY), OPT_INEXACT, in ATF_TC_BODY()