Lines Matching refs:z

59 #define	test_p(func, z, result, exceptmask, excepts, checksign)	do {	\  argument
60 volatile long double complex _d = z; \
73 #define test_p_tol(func, z, result, tol) do { \ argument
74 volatile long double complex _d = z; \
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); \
152 long double complex z; in test_nan() local
164 z = nan_nan; in test_nan()
165 testall_odd(csinh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in test_nan()
166 testall_even(ccosh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in test_nan()
167 testall_odd(ctanh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in test_nan()
168 testall_odd(csin, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in test_nan()
169 testall_even(ccos, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in test_nan()
170 testall_odd(ctan, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in test_nan()
172 z = CMPLXL(42, NAN); in test_nan()
173 testall_odd(csinh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
174 testall_even(ccosh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
176 testall_odd(ctanh, z, nan_nan, OPT_INVALID & ~FE_INEXACT, 0, 0); in test_nan()
177 testall_odd(csin, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
178 testall_even(ccos, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
179 testall_odd(ctan, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
181 z = CMPLXL(NAN, 42); in test_nan()
182 testall_odd(csinh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
183 testall_even(ccosh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
184 testall_odd(ctanh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
185 testall_odd(csin, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
186 testall_even(ccos, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
188 testall_odd(ctan, z, nan_nan, OPT_INVALID & ~FE_INEXACT, 0, 0); in test_nan()
190 z = CMPLXL(NAN, INFINITY); in test_nan()
191 testall_odd(csinh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
192 testall_even(ccosh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
193 testall_odd(ctanh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
194 testall_odd(csin, z, CMPLXL(NAN, INFINITY), ALL_STD_EXCEPT, 0, 0); in test_nan()
195 testall_even(ccos, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, in test_nan()
197 testall_odd(ctan, z, CMPLXL(0, 1), ALL_STD_EXCEPT, 0, CS_IMAG); in test_nan()
199 z = CMPLXL(INFINITY, NAN); in test_nan()
200 testall_odd(csinh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, 0); in test_nan()
201 testall_even(ccosh, z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, in test_nan()
203 testall_odd(ctanh, z, CMPLXL(1, 0), ALL_STD_EXCEPT, 0, CS_REAL); in test_nan()
204 testall_odd(csin, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
205 testall_even(ccos, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
206 testall_odd(ctan, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
208 z = CMPLXL(0, NAN); in test_nan()
209 testall_odd(csinh, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, 0, 0); in test_nan()
210 testall_even(ccosh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in test_nan()
211 testall_odd(ctanh, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
212 testall_odd(csin, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in test_nan()
213 testall_even(ccos, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in test_nan()
214 testall_odd(ctan, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in test_nan()
216 z = CMPLXL(NAN, 0); in test_nan()
217 testall_odd(csinh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, CS_IMAG); in test_nan()
218 testall_even(ccosh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in test_nan()
219 testall_odd(ctanh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, CS_IMAG); in test_nan()
220 testall_odd(csin, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in test_nan()
221 testall_even(ccos, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, 0, 0); in test_nan()
222 testall_odd(ctan, z, nan_nan, OPT_INVALID, 0, 0); in test_nan()
231 long double complex z, c, s; in test_inf() local
241 z = CMPLXL(INFINITY, INFINITY); in test_inf()
242 testall_odd(csinh, z, CMPLXL(INFINITY, NAN), in test_inf()
244 testall_even(ccosh, z, CMPLXL(INFINITY, NAN), in test_inf()
246 testall_odd(ctanh, z, CMPLXL(1, 0), ALL_STD_EXCEPT, 0, CS_REAL); in test_inf()
247 testall_odd(csin, z, CMPLXL(NAN, INFINITY), in test_inf()
249 testall_even(ccos, z, CMPLXL(INFINITY, NAN), in test_inf()
251 testall_odd(ctan, z, CMPLXL(0, 1), ALL_STD_EXCEPT, 0, CS_REAL); in test_inf()
255 z = CMPLXL(INFINITY, finites[i]); in test_inf()
258 testall_odd(csinh, z, CMPLXL(c, s), OPT_INEXACT, 0, CS_BOTH); in test_inf()
259 testall_even(ccosh, z, CMPLXL(c, s), OPT_INEXACT, 0, CS_BOTH); in test_inf()
260 testall_odd(ctanh, z, CMPLXL(1, 0 * sin(finites[i] * 2)), in test_inf()
262 z = CMPLXL(finites[i], INFINITY); in test_inf()
263 testall_odd(csin, z, CMPLXL(s, c), OPT_INEXACT, 0, CS_BOTH); in test_inf()
264 testall_even(ccos, z, CMPLXL(c, -s), OPT_INEXACT, 0, CS_BOTH); in test_inf()
265 testall_odd(ctan, z, CMPLXL(0 * sin(finites[i] * 2), 1), in test_inf()
269 z = CMPLXL(0, INFINITY); in test_inf()
270 testall_odd(csinh, z, CMPLXL(0, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
271 testall_even(ccosh, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
272 testall_odd(ctanh, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
273 z = CMPLXL(INFINITY, 0); in test_inf()
274 testall_odd(csin, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
275 testall_even(ccos, z, CMPLXL(NAN, 0), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
276 testall_odd(ctan, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
278 z = CMPLXL(42, INFINITY); in test_inf()
279 testall_odd(csinh, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
280 testall_even(ccosh, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
282 testall_odd(ctanh, z, CMPLXL(NAN, NAN), OPT_INEXACT, FE_INVALID, 0); in test_inf()
283 z = CMPLXL(INFINITY, 42); in test_inf()
284 testall_odd(csin, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
285 testall_even(ccos, z, CMPLXL(NAN, NAN), ALL_STD_EXCEPT, FE_INVALID, 0); in test_inf()
287 testall_odd(ctan, z, CMPLXL(NAN, NAN), OPT_INEXACT, FE_INVALID, 0); in test_inf()
298 long double complex z; in test_axes() local
303 z = CMPLXL(nums[i], 0.0); in test_axes()
304 test_odd_tol(csinh, z, CMPLXL(sinh(nums[i]), 0), DBL_ULP()); in test_axes()
305 test_even_tol(ccosh, z, CMPLXL(cosh(nums[i]), 0), DBL_ULP()); in test_axes()
306 test_odd_tol(ctanh, z, CMPLXL(tanh(nums[i]), 0), DBL_ULP()); in test_axes()
307 test_odd_tol(csin, z, CMPLXL(sin(nums[i]), in test_axes()
309 test_even_tol(ccos, z, CMPLXL(cos(nums[i]), in test_axes()
311 test_odd_tol(ctan, z, CMPLXL(tan(nums[i]), 0), DBL_ULP()); in test_axes()
313 test_odd_tol(csinhf, z, CMPLXL(sinhf(nums[i]), 0), FLT_ULP()); in test_axes()
314 test_even_tol(ccoshf, z, CMPLXL(coshf(nums[i]), 0), FLT_ULP()); in test_axes()
315 printf("%a %a\n", creal(z), cimag(z)); in test_axes()
316 printf("%a %a\n", creal(ctanhf(z)), cimag(ctanhf(z))); in test_axes()
318 test_odd_tol(ctanhf, z, CMPLXL(tanhf(nums[i]), 0), in test_axes()
320 test_odd_tol(csinf, z, CMPLXL(sinf(nums[i]), in test_axes()
322 test_even_tol(ccosf, z, CMPLXL(cosf(nums[i]), in test_axes()
324 test_odd_tol(ctanf, z, CMPLXL(tanf(nums[i]), 0), FLT_ULP()); in test_axes()
327 z = CMPLXL(0.0, nums[i]); in test_axes()
328 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])), in test_axes()
330 test_even_tol(ccosh, z, CMPLXL(cos(nums[i]), in test_axes()
332 test_odd_tol(ctanh, z, CMPLXL(0, tan(nums[i])), DBL_ULP()); in test_axes()
333 test_odd_tol(csin, z, CMPLXL(0, sinh(nums[i])), DBL_ULP()); in test_axes()
334 test_even_tol(ccos, z, CMPLXL(cosh(nums[i]), -0.0), DBL_ULP()); in test_axes()
335 test_odd_tol(ctan, z, CMPLXL(0, tanh(nums[i])), DBL_ULP()); in test_axes()
337 test_odd_tol(csinhf, z, CMPLXL(copysign(0, cosf(nums[i])), in test_axes()
339 test_even_tol(ccoshf, z, CMPLXL(cosf(nums[i]), in test_axes()
341 test_odd_tol(ctanhf, z, CMPLXL(0, tanf(nums[i])), FLT_ULP()); in test_axes()
342 test_odd_tol(csinf, z, CMPLXL(0, sinhf(nums[i])), FLT_ULP()); in test_axes()
343 test_even_tol(ccosf, z, CMPLXL(coshf(nums[i]), -0.0), in test_axes()
345 test_odd_tol(ctanf, z, CMPLXL(0, tanhf(nums[i])), in test_axes()
398 long double complex z; in test_small() local
402 z = CMPLXL(tests[i].a, tests[i].b); in test_small()
403 testall_odd_tol(csinh, z, in test_small()
405 testall_even_tol(ccosh, z, in test_small()
407 testall_odd_tol(ctanh, z, in test_small()
416 long double complex z; in test_large() local
419 z = CMPLXL(21, 0.78539816339744830961566084581987572L); in test_large()
420 testall_odd_tol(ctanh, z, in test_large()
422 z++; in test_large()
423 testall_odd_tol(ctanh, z, in test_large()
426 z = CMPLXL(355, 0.78539816339744830961566084581987572L); in test_large()
427 test_odd_tol(ctanh, z, in test_large()
430 z = CMPLXL(30, 0x1p1023L); in test_large()
431 test_odd_tol(ctanh, z, in test_large()
434 z = CMPLXL(1, 0x1p1023L); in test_large()
435 test_odd_tol(ctanh, z, in test_large()
440 z = CMPLXL(710.6, 0.78539816339744830961566084581987572L); in test_large()
441 test_odd_tol(csinh, z, in test_large()
444 test_even_tol(ccosh, z, in test_large()
448 z = CMPLXL(1500, 0.78539816339744830961566084581987572L); in test_large()
449 testall_odd(csinh, z, CMPLXL(INFINITY, INFINITY), OPT_INEXACT, in test_large()
451 testall_even(ccosh, z, CMPLXL(INFINITY, INFINITY), OPT_INEXACT, in test_large()