Home
last modified time | relevance | path

Searched refs:res (Results 1 – 17 of 17) sorted by relevance

/math/
A Dk_casinh_template.c34 CFLOAT res; in M_DECL_FUNC() local
58 res = M_SUF (__clog) (y); in M_DECL_FUNC()
65 __real__ res = M_LOG (rx + s); in M_DECL_FUNC() local
69 __imag__ res = M_ATAN2 (ix, s); in M_DECL_FUNC() local
75 __real__ res = M_LOG (ix + s); in M_DECL_FUNC() local
79 __imag__ res = M_ATAN2 (s, rx); in M_DECL_FUNC() local
148 __imag__ res = M_ATAN2 (ix, s); in M_DECL_FUNC() local
198 res = M_SUF (__clog) (y); in M_DECL_FUNC()
202 __real__ res = M_COPYSIGN (__real__ res, __real__ x); in M_DECL_FUNC() local
203 __imag__ res = M_COPYSIGN (__imag__ res, (adj ? 1 : __imag__ x)); in M_DECL_FUNC() local
[all …]
A Dtest-fenv.c654 int res; in feholdexcept_tests() local
664 res = feholdexcept (&saved); in feholdexcept_tests()
665 if (res != 0) in feholdexcept_tests()
685 res = feupdateenv (&saved); in feholdexcept_tests()
686 if (res != 0) in feholdexcept_tests()
692 res = fegetround (); in feholdexcept_tests()
693 if (res != FE_TONEAREST) in feholdexcept_tests()
715 if (res != 0) in feholdexcept_tests()
722 if (res != 0) in feholdexcept_tests()
736 if (res != 0) in feholdexcept_tests()
[all …]
A Dgen-libm-test.py373 res = res_rm[rm]
383 result = res[res_pos]
418 flags.append(res[res_pos])
548 res = test_args[num_args:]
549 if len(res) == num_res:
551 res.append('0')
552 res_rm = [res, res, res, res]
553 elif len(res) == num_res + 1:
561 res_rm = [res, res, res, res]
565 res_rm = [res[:nr_plus], res[nr_plus:2*nr_plus],
[all …]
A Ds_catan_template.c28 CFLOAT res; in M_DECL_FUNC() local
37 __imag__ res = M_COPYSIGN (0, __imag__ x); in M_DECL_FUNC() local
44 __real__ res = M_NAN; in M_DECL_FUNC() local
45 __imag__ res = M_COPYSIGN (0, __imag__ x); in M_DECL_FUNC() local
49 __real__ res = M_NAN; in M_DECL_FUNC() local
54 __real__ res = M_NAN; in M_DECL_FUNC() local
55 __imag__ res = M_NAN; in M_DECL_FUNC() local
60 res = x; in M_DECL_FUNC()
69 __imag__ res = 1 / __imag__ x; in M_DECL_FUNC() local
126 __imag__ res = M_LIT (0.25) * M_LOG (f); in M_DECL_FUNC() local
[all …]
A Ds_catanh_template.c28 CFLOAT res; in M_DECL_FUNC() local
36 __real__ res = M_COPYSIGN (0, __real__ x); in M_DECL_FUNC() local
41 __real__ res = M_COPYSIGN (0, __real__ x); in M_DECL_FUNC() local
45 __imag__ res = M_NAN; in M_DECL_FUNC() local
49 __real__ res = M_NAN; in M_DECL_FUNC() local
50 __imag__ res = M_NAN; in M_DECL_FUNC() local
55 res = x; in M_DECL_FUNC()
64 __real__ res = 1 / __real__ x; in M_DECL_FUNC() local
70 __real__ res = __real__ x / h / h / 4; in M_DECL_FUNC() local
94 __real__ res = M_LIT (0.25) * M_LOG (f); in M_DECL_FUNC() local
[all …]
A Ds_csqrt_template.c28 CFLOAT res; in M_DECL_FUNC() local
36 __real__ res = M_HUGE_VAL; in M_DECL_FUNC() local
37 __imag__ res = __imag__ x; in M_DECL_FUNC() local
48 __real__ res = __real__ x; in M_DECL_FUNC() local
49 __imag__ res = (icls == FP_NAN in M_DECL_FUNC() local
55 __real__ res = M_NAN; in M_DECL_FUNC() local
56 __imag__ res = M_NAN; in M_DECL_FUNC() local
65 __real__ res = 0; in M_DECL_FUNC() local
82 __real__ res = r; in M_DECL_FUNC() local
152 __real__ res = r; in M_DECL_FUNC() local
[all …]
A Ds_cacosh_template.c26 CFLOAT res; in M_DECL_FUNC() local
34 __real__ res = M_HUGE_VAL; in M_DECL_FUNC() local
37 __imag__ res = M_NAN; in M_DECL_FUNC() local
47 __real__ res = M_HUGE_VAL; in M_DECL_FUNC() local
53 __imag__ res = M_NAN; in M_DECL_FUNC() local
57 __real__ res = M_NAN; in M_DECL_FUNC() local
61 __imag__ res = M_NAN; in M_DECL_FUNC() local
66 __real__ res = 0; in M_DECL_FUNC() local
80 __real__ res = __real__ y; in M_DECL_FUNC() local
86 __imag__ res = __imag__ y; in M_DECL_FUNC() local
[all …]
A Ds_ctan_template.c29 CFLOAT res; in M_DECL_FUNC() local
47 res = x; in M_DECL_FUNC()
51 __real__ res = M_NAN; in M_DECL_FUNC() local
53 __imag__ res = __imag__ x; in M_DECL_FUNC() local
55 __imag__ res = M_NAN; in M_DECL_FUNC() local
89 __real__ res = 4 * sinrx * cosrx; in M_DECL_FUNC() local
92 __real__ res /= exp_2t; in M_DECL_FUNC()
97 __real__ res /= exp_2t; in M_DECL_FUNC()
120 __real__ res = sinrx * cosrx / den; in M_DECL_FUNC() local
121 __imag__ res = sinhix * coshix / den; in M_DECL_FUNC() local
[all …]
A Ds_ctanh_template.c29 CFLOAT res; in M_DECL_FUNC() local
47 res = x; in M_DECL_FUNC()
52 __real__ res = __real__ x; in M_DECL_FUNC() local
54 __real__ res = M_NAN; in M_DECL_FUNC() local
55 __imag__ res = M_NAN; in M_DECL_FUNC() local
89 __imag__ res = 4 * sinix * cosix; in M_DECL_FUNC() local
92 __imag__ res /= exp_2t; in M_DECL_FUNC()
97 __imag__ res /= exp_2t; in M_DECL_FUNC()
120 __real__ res = sinhrx * coshrx / den; in M_DECL_FUNC() local
121 __imag__ res = sinix * cosix / den; in M_DECL_FUNC() local
[all …]
A Dtest-fenv-return.c29 int res; in test_feenableexcept() local
33 res = feenableexcept (FE_ALL_EXCEPT); in test_feenableexcept()
35 if (!EXCEPTION_ENABLE_SUPPORTED (FE_ALL_EXCEPT) && (res == -1)) in test_feenableexcept()
40 else if (res != 0) in test_feenableexcept()
58 int res; in test_fesetenv() local
62 res = fesetenv (FE_NOMASK_ENV); in test_fesetenv()
64 if (!EXCEPTION_ENABLE_SUPPORTED (FE_ALL_EXCEPT) && (res != 0)) in test_fesetenv()
69 else if (res != 0) in test_fesetenv()
87 int res; in test_feupdateenv() local
91 res = feupdateenv (FE_NOMASK_ENV); in test_feupdateenv()
[all …]
A Ds_casinh_template.c25 CFLOAT res; in M_DECL_FUNC() local
36 __imag__ res = M_NAN; in M_DECL_FUNC() local
38 __imag__ res = M_COPYSIGN ((rcls >= FP_ZERO in M_DECL_FUNC() local
44 __real__ res = __real__ x; in M_DECL_FUNC() local
47 __imag__ res = M_COPYSIGN (0, __imag__ x); in M_DECL_FUNC() local
49 __imag__ res = M_NAN; in M_DECL_FUNC() local
53 __real__ res = M_NAN; in M_DECL_FUNC() local
54 __imag__ res = M_NAN; in M_DECL_FUNC() local
59 res = x; in M_DECL_FUNC()
63 res = M_SUF (__kernel_casinh) (x, 0); in M_DECL_FUNC()
[all …]
A Dgen-auto-libm-tests.c1053 round_real (mpfr_t res[rm_num_modes], in round_real()
1061 mpfr_init2 (res[m], fp_formats[format].mant_dig); in round_real()
1079 overflow_inf = mpfr_signbit (res[m]); in round_real()
1082 overflow_inf = !mpfr_signbit (res[m]); in round_real()
1088 mpfr_set_inf (res[m], mpfr_signbit (res[m]) ? -1 : 1); in round_real()
1091 res[m], MPFR_RNDN)); in round_real()
1099 = mpfr_cmpabs (res[m], fp_formats[format].min) < 0; in round_real()
1117 assert_exact (mpfr_mul_2si (res[m], tmp, in round_real()
1820 mpfr_t res[rm_num_modes]; in output_for_one_input_case() local
1881 round_real (res, exc_before, exc_after, in output_for_one_input_case()
[all …]
A Ds_casin_template.c26 CFLOAT res; in M_DECL_FUNC() local
32 res = x; in M_DECL_FUNC()
36 __real__ res = M_NAN; in M_DECL_FUNC() local
37 __imag__ res = M_COPYSIGN (M_HUGE_VAL, __imag__ x); in M_DECL_FUNC() local
41 __real__ res = M_NAN; in M_DECL_FUNC() local
42 __imag__ res = M_NAN; in M_DECL_FUNC() local
54 __real__ res = __imag__ y; in M_DECL_FUNC() local
55 __imag__ res = -__real__ y; in M_DECL_FUNC() local
58 return res; in M_DECL_FUNC()
A Ds_cacos_template.c26 CFLOAT res; in M_DECL_FUNC() local
35 __real__ res = (FLOAT) M_MLIT (M_PI_2) - __real__ y; in M_DECL_FUNC() local
36 if (__real__ res == 0) in M_DECL_FUNC()
37 __real__ res = 0; in M_DECL_FUNC() local
38 __imag__ res = -__imag__ y; in M_DECL_FUNC() local
47 __real__ res = __imag__ y; in M_DECL_FUNC() local
48 __imag__ res = __real__ y; in M_DECL_FUNC() local
51 return res; in M_DECL_FUNC()
A Dgen-fromfp-tests.py118 res, width = a, a_width variable
120 res, width = z, z_width
121 if not unsigned and not negative and res != '0':
136 if w < width or (unsigned and res.startswith('-')):
141 (test_macro, func, val, rm, ws, res, inexact_res))
A Ds_cproj_template.c28 CFLOAT res; in M_DECL_FUNC() local
30 __real__ res = INFINITY; in M_DECL_FUNC() local
31 __imag__ res = M_COPYSIGN (0, __imag__ x); in M_DECL_FUNC() local
33 return res; in M_DECL_FUNC()
A Dbug-tgmath1.c10 #define TEST(expr, res) \ in main() argument
11 if (sizeof (expr) != res) \ in main()
14 sizeof (expr), (size_t) (res)); \ in main()

Completed in 21 milliseconds