/freebsd-current/lib/msun/i387/ |
H A D | s_cos.S | 37 ENTRY(cos) 54 END(cos)
|
/freebsd-current/lib/msun/src/ |
H A D | s_cos.c | 12 /* cos(x) 21 * Let S,C and T denote the sin, cos and tan respectively on 26 * n sin(x) cos(x) tan(x) 35 * Let trig be any of sin, cos, or tan. 51 cos(double x) function 67 /* cos(Inf or NaN) is NaN */ 84 __weak_reference(cos, cosl);
|
H A D | s_csinh.c | 33 * = sinh(x) cos(y) + i cosh(x) sin(y). 68 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y))); 74 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); 82 return (CMPLX(h * cos(y), h * h * sin(y))); 126 * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) 131 return (CMPLX(x * cos(y), INFINITY * sin(y)));
|
H A D | s_ccosh.c | 33 * = cosh(x) cos(y) + i sinh(x) sin(y). 68 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y))); 74 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); 82 return (CMPLX(h * h * cos(y), h * sin(y))); 127 * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) 132 return (CMPLX(INFINITY * cos(y), x * sin(y)));
|
H A D | s_ctanh.c | 41 * beta = 1/cos^2(y) 49 * sinh(x) cos(y) + I cosh(x) sin(y) 51 * cosh(x) cos(y) + I sinh(x) sin(y) 53 * cosh(x) sinh(x) / cos^2(y) + I tan(y) 55 * 1 + sinh^2(x) / cos^2(y) 107 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); 127 4 * sin(y) * cos(y) * exp_mx * exp_mx)); 132 beta = 1.0 + t * t; /* = 1 / cos^2(y) */
|
H A D | s_cpow.c | 70 w = CMPLX(r * cos (theta), r * sin (theta));
|
/freebsd-current/contrib/llvm-project/libcxx/include/__math/ |
H A D | trigonometric_functions.h | 24 // cos 26 inline _LIBCPP_HIDE_FROM_ABI float cos(float __x) _NOEXCEPT { return __builtin_cosf(__x); } 29 _LIBCPP_HIDE_FROM_ABI double cos(double __x) _NOEXCEPT { 33 inline _LIBCPP_HIDE_FROM_ABI long double cos(long double __x) _NOEXCEPT { return __builtin_cosl(__x); } 36 inline _LIBCPP_HIDE_FROM_ABI double cos(_A1 __x) _NOEXCEPT {
|
/freebsd-current/contrib/arm-optimized-routines/pl/math/ |
H A D | sv_cos_2u5.c | 2 * Double-precision SVE cos(x) function. 21 /* Original shift used in AdvSIMD cos, 32 return sv_call_f64 (cos, x, y, oob); 35 /* A fast SVE implementation of cos based on trigonometric 38 SV_NAME_D1 (cos)(0x1.9b0ba158c98f3p+7) got -0x1.fddd4c65c7f07p-3 40 svfloat64_t SV_NAME_D1 (cos) (svfloat64_t x, const svbool_t pg) function 61 /* cos(r) poly approx. */ 83 PL_SIG (SV, D, 1, cos, -3.1, 3.1) 84 PL_TEST_ULP (SV_NAME_D1 (cos), 1.61) 85 PL_TEST_INTERVAL (SV_NAME_D1 (cos), [all...] |
H A D | sv_cosf_2u1.c | 2 * Single-precision SVE cos(x) function. 38 SV_NAME_F1 (cos)(0x1.dea2f2p+19) got 0x1.fffe7ap-6 40 svfloat32_t SV_NAME_F1 (cos) (svfloat32_t x, const svbool_t pg) function 62 /* cos(r) poly approx. */ 77 PL_SIG (SV, F, 1, cos, -3.1, 3.1) 78 PL_TEST_ULP (SV_NAME_F1 (cos), 1.57) 79 PL_TEST_INTERVAL (SV_NAME_F1 (cos), 0, 0xffff0000, 10000) 80 PL_TEST_INTERVAL (SV_NAME_F1 (cos), 0x1p-4, 0x1p4, 500000)
|
H A D | sv_cexpi_3u5.c | 16 sv_call_f64 (cos, x, svget2 (y, 1), special)); 19 /* Double-precision vector function allowing calculation of both sin and cos in
|
H A D | v_cexpi_3u5.c | 16 v_call_f64 (cos, x, y.val[1], special) }; 19 /* Double-precision vector function allowing calculation of both sin and cos in
|
/freebsd-current/lib/msun/tests/ |
H A D | trig_test.c | 84 "test special cases in sin(), cos(), and tan()"); 92 testall(cos, 0.0, 1.0, ALL_STD_EXCEPT, 0); 93 testall(cos, -0.0, 1.0, ALL_STD_EXCEPT, 0); 100 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 103 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 108 testall(cos, NAN, NAN, ALL_STD_EXCEPT, 0); 183 ATF_CHECK(cos(d_pi_odd[i]) == -1.0); 187 ATF_CHECK(cos(-d_pi_odd[i]) == -1.0); 191 ATF_CHECK(cos(d_pi_odd[i] * 2) == 1.0); 195 ATF_CHECK(cos( [all...] |
/freebsd-current/sys/tools/sound/ |
H A D | feeder_eq_mkfilter.awk | 136 b1 = -2.0 * cos(w0); 139 a1 = -2.0 * cos(w0); 142 b0 = A*((A+1.0)+((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha)); 143 b1 = -2.0*A*((A-1.0)+((A+1.0)*cos(w0)) ); 144 b2 = A*((A+1.0)+((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha)); 145 a0 = (A+1.0)-((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha ); 146 a1 = 2.0 * ((A-1.0)-((A+1.0)*cos(w0)) ); 147 a2 = (A+1.0)-((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha ); 170 b1 = -2.0 * cos(w0); 173 a1 = -2.0 * cos(w [all...] |
H A D | feeder_rate_mkfilter.awk | 267 w = 0.36335819 + (0.4891775 * cos(x)) + \ 268 (0.1365995 * cos(2 * x)) + \ 269 (0.0106411 * cos(3 * x)); 272 w = 0.355768 + (0.487396 * cos(x)) + \ 273 (0.144232 * cos(2 * x)) + \ 274 (0.012604 * cos(3 * x)); 277 w = 0.422323 + (0.49755 * cos(x)) + \ 278 (0.07922 * cos(2 * x)); 281 w = 0.42 + (0.50 * cos(x)) + \ 282 (0.08 * cos( [all...] |
/freebsd-current/contrib/arm-optimized-routines/pl/math/test/ |
H A D | ulp_funcs.h | 48 F (_ZGVnN4v_sincosf_cos, v_sincosf_cos, cos, mpfr_cos, 1, 1, f1, 0) 50 F (_ZGVnN4v_cexpif_cos, v_cexpif_cos, cos, mpfr_cos, 1, 1, f1, 0) 62 F (_ZGVsMxv_sincosf_cos, sv_sincosf_cos, cos, mpfr_cos, 1, 1, f1, 0) 64 F (_ZGVsMxv_cexpif_cos, sv_cexpif_cos, cos, mpfr_cos, 1, 1, f1, 0)
|
/freebsd-current/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_fpu.c | 81 x = sin ((y = cos (x + y + .4)) - (z = cos (x + z + .6)));
|
/freebsd-current/contrib/arm-optimized-routines/math/test/ |
H A D | ulp_wrappers.h | 13 static double sincos_sin(double x) {(void)cos(x); return sin(x);} 14 static double sincos_cos(double x) {(void)sin(x); return cos(x);}
|
H A D | ulp_funcs.h | 9 F1 (cos) 27 F (_ZGVnN4v_cosf, Z_cosf, cos, mpfr_cos, 1, 1, f1, 1)
|
/freebsd-current/sys/dev/bxe/ |
H A D | ecore_init.h | 237 #define ECORE_VOQ_Q_REG_ADDR(cos, pf_q_num)\ 238 (QM_REG_VOQQMASK_0_LSB + 4 * ((cos) * 2 + ((pf_q_num) >> 5))) 306 traffic_cos[LLFC_TRAFFIC_TYPE_FCOE].cos); 308 traffic_cos[LLFC_TRAFFIC_TYPE_ISCSI].cos); 310 traffic_cos[LLFC_TRAFFIC_TYPE_ISCSI].cos); 314 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos); 316 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos); 318 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos); 493 uint32_t vnic, cos; local 498 for (cos [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libm/ |
H A D | t_cos.c | 89 atf_tc_fail_nonfatal("cos(%d deg = %.17Lg) = %.17Lg" 165 * cos(3) 184 if (!(fabs((cos(theta) - cos_theta)/cos_theta) <= eps)) { 185 atf_tc_fail_nonfatal("cos(%d deg = %.17g) = %.17g" 187 deg, theta, cos(theta), cos_theta); 195 atf_tc_set_md_var(tc, "descr", "Test cos(NaN) == NaN"); 203 ATF_CHECK(isnan(cos(x)) != 0); 209 atf_tc_set_md_var(tc, "descr", "Test cos(-Inf) == NaN"); 216 ATF_CHECK(isnan(cos(x)) != 0); 222 atf_tc_set_md_var(tc, "descr", "Test cos( [all...] |
/freebsd-current/contrib/llvm-project/clang/lib/Headers/hlsl/ |
H A D | hlsl_intrinsics.h | 116 // cos builtins 120 half cos(half); 122 half2 cos(half2); 124 half3 cos(half3); 126 half4 cos(half4); 130 float cos(float); 132 float2 cos(float2); 134 float3 cos(float3); 136 float4 cos(float4); 139 double cos(doubl [all...] |
/freebsd-current/contrib/ntp/clockstuff/ |
H A D | propdelay.c | 59 extern double cos (double); 391 (cos(l1r) * cos(l2r) * cos((long2-long1)*RADPERDEG)) 540 k2 = SATHEIGHT - (EARTHRADIUS * cos(theta));
|
/freebsd-current/contrib/arm-optimized-routines/math/aarch64/ |
H A D | v_cos.c | 2 * Double-precision vector cos function. 36 return v_call_f64 (cos, x, y, cmp); 39 float64x2_t VPCS_ATTR V_NAME_D1 (cos) (float64x2_t x) function
|
H A D | v_cosf.c | 2 * Single-precision vector cos function. 40 float32x4_t VPCS_ATTR V_NAME_F1 (cos) (float32x4_t x) function
|
/freebsd-current/contrib/llvm-project/clang/lib/Headers/ |
H A D | __clang_cuda_math_forward_declares.h | 51 __DEVICE__ double cos(double); 52 __DEVICE__ float cos(float); 211 using ::cos;
|