Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 25 of 45) sorted by relevance

12

/picolibc-3.5.0-3.4.0/newlib/libm/machine/spu/headers/
Dcos_sin.h135 vec_float4 x2, x4, x6; \
139 x2 = spu_mul(_x, _x); \
140 x4 = spu_mul(x2, x2); \
141 x6 = spu_mul(x2, x4); \
143 cos_hi = spu_madd(spu_splats((float)COS_10), x2, spu_splats((float)COS_08)); \
144 cos_lo = spu_madd(spu_splats((float)COS_04), x2, spu_splats((float)COS_02)); \
145 cos_hi = spu_madd(cos_hi, x2, spu_splats((float)COS_06)); \
146 cos_lo = spu_madd(cos_lo, x2, spu_splats((float)COS_00)); \
149 sin_hi = spu_madd(spu_splats((float)SIN_11), x2, spu_splats((float)SIN_09)); \
150 sin_lo = spu_madd(spu_splats((float)SIN_05), x2, spu_splats((float)SIN_03)); \
[all …]
Datanf.h70 float x2, x3, x4, x8, x9; in _atanf() local
91 x2 = x * x; in _atanf()
92 x3 = x2 * x; in _atanf()
93 x4 = x2 * x2; in _atanf()
96 hi = 0.0028662257f * x2 - 0.0161657367f; in _atanf()
97 hi = hi * x2 + 0.0429096138f; in _atanf()
98 hi = hi * x2 - 0.0752896400f; in _atanf()
99 hi = hi * x2 + 0.1065626393f; in _atanf()
100 lo = -0.1420889944f * x2 + 0.1999355085f; in _atanf()
101 lo = lo * x2 - 0.3333314528f; in _atanf()
Dasind2.h107 vec_double2 x2, x3; // x squared and x cubed, respectively. in _asind2() local
140 x2 = spu_mul(x, x); in _asind2()
141 x3 = spu_mul(x2, x); in _asind2()
143 p = spu_madd(spu_splats(0.004253011369004428248960), x2, spu_splats(-0.6019598008014123785661)); in _asind2()
144 p = spu_madd(p, x2, spu_splats(5.444622390564711410273)); in _asind2()
145 p = spu_madd(p, x2, spu_splats(-16.26247967210700244449)); in _asind2()
146 p = spu_madd(p, x2, spu_splats(19.56261983317594739197)); in _asind2()
147 p = spu_madd(p, x2, spu_splats(-8.198089802484824371615)); in _asind2()
149 q = spu_add(x2, spu_splats(-14.74091372988853791896)); in _asind2()
150 q = spu_madd(q, x2, spu_splats(70.49610280856842141659)); in _asind2()
[all …]
Dasinf4.h80 vector float xabs, x2, x4, x6; in _asinf4() local
88 x2 = spu_mul(x, x); in _asinf4()
89 x4 = spu_mul(x2, x2); in _asinf4()
90 x6 = spu_mul(x4, x2); in _asinf4()
96 p_hi = spu_madd(spu_splats(0.0000347933107596021167570f), x2, in _asinf4()
98 p_hi = spu_madd(p_hi, x2, spu_splats(-0.0400555345006794114027f)); in _asinf4()
100 p_lo = spu_madd(spu_splats(0.201212532134862925881f), x2, in _asinf4()
102 p_lo = spu_madd(p_lo, x2, spu_splats(0.166666666666666657415f)); in _asinf4()
106 q_hi = spu_madd(spu_splats(0.0770381505559019352791f), x2, in _asinf4()
108 q_hi = spu_madd(q_hi, x2, spu_splats(2.02094576023350569471f)); in _asinf4()
[all …]
Dcoshd2.h85 vec_double2 x2 = spu_mul(x,x); in _coshd2() local
86 result = spu_madd(x2,f22,f20); in _coshd2()
87 result = spu_madd(x2,result,f18); in _coshd2()
88 result = spu_madd(x2,result,f16); in _coshd2()
89 result = spu_madd(x2,result,f14); in _coshd2()
90 result = spu_madd(x2,result,f12); in _coshd2()
91 result = spu_madd(x2,result,f10); in _coshd2()
92 result = spu_madd(x2,result,f08); in _coshd2()
93 result = spu_madd(x2,result,f06); in _coshd2()
94 result = spu_madd(x2,result,f04); in _coshd2()
[all …]
Dsinhd2.h88 vec_double2 x2 = spu_mul(x,x); in _sinhd2() local
89 result = spu_madd(x2,f23,f21); in _sinhd2()
90 result = spu_madd(x2,result,f19); in _sinhd2()
91 result = spu_madd(x2,result,f17); in _sinhd2()
92 result = spu_madd(x2,result,f15); in _sinhd2()
93 result = spu_madd(x2,result,f13); in _sinhd2()
94 result = spu_madd(x2,result,f11); in _sinhd2()
95 result = spu_madd(x2,result,f09); in _sinhd2()
96 result = spu_madd(x2,result,f07); in _sinhd2()
97 result = spu_madd(x2,result,f05); in _sinhd2()
[all …]
Dacosd2.h103 vec_double2 x2, x3; // x squared and x cubed, respectively. in _acosd2() local
138 x2 = spu_mul(x, x); in _acosd2()
139 x3 = spu_mul(x2, x); in _acosd2()
141 p = spu_madd(spu_splats(0.004253011369004428248960), x2, spu_splats(-0.6019598008014123785661)); in _acosd2()
142 p = spu_madd(p, x2, spu_splats(5.444622390564711410273)); in _acosd2()
143 p = spu_madd(p, x2, spu_splats(-16.26247967210700244449)); in _acosd2()
144 p = spu_madd(p, x2, spu_splats(19.56261983317594739197)); in _acosd2()
145 p = spu_madd(p, x2, spu_splats(-8.198089802484824371615)); in _acosd2()
147 q = spu_add(x2, spu_splats(-14.74091372988853791896)); in _acosd2()
148 q = spu_madd(q, x2, spu_splats(70.49610280856842141659)); in _acosd2()
[all …]
Datanf4.h80 vector float x2, x3, x4, x8, x9; in _atanf4() local
103 x2 = spu_mul(x, x); in _atanf4()
104 x3 = spu_mul(x2, x); in _atanf4()
105 x4 = spu_mul(x2, x2); in _atanf4()
108 hi = spu_madd(spu_splats(0.0028662257f), x2, spu_splats(-0.0161657367f)); in _atanf4()
109 hi = spu_madd(hi, x2, spu_splats(0.0429096138f)); in _atanf4()
110 hi = spu_madd(hi, x2, spu_splats(-0.0752896400f)); in _atanf4()
111 hi = spu_madd(hi, x2, spu_splats(0.1065626393f)); in _atanf4()
112 lo = spu_madd(spu_splats(-0.1420889944f), x2, spu_splats(0.1999355085f)); in _atanf4()
113 lo = spu_madd(lo, x2, spu_splats(-0.3333314528f)); in _atanf4()
Dtanhd2.h98 vector double x2; in _tanhd2() local
117 x2 = spu_mul(x,x); in _tanhd2()
118 tresult = spu_madd(x2, spu_splats(TANH_TAY11), spu_splats(TANH_TAY10)); in _tanhd2()
119 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY09)); in _tanhd2()
120 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY08)); in _tanhd2()
121 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY07)); in _tanhd2()
122 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY06)); in _tanhd2()
123 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY05)); in _tanhd2()
124 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY04)); in _tanhd2()
125 tresult = spu_madd(x2, tresult, spu_splats(TANH_TAY03)); in _tanhd2()
[all …]
Dcoshf4.h75 vector float x2 = spu_mul(x,x); in _coshf4() local
76 result = spu_madd(x2,f12,f10); in _coshf4()
77 result = spu_madd(x2,result,f08); in _coshf4()
78 result = spu_madd(x2,result,f06); in _coshf4()
79 result = spu_madd(x2,result,f04); in _coshf4()
80 result = spu_madd(x2,result,f02); in _coshf4()
81 result = spu_madd(x2,result,spu_splats(1.0f)); in _coshf4()
Dtanhf4.h75 vector float x2; in _tanhf4() local
94 x2 = spu_mul(x,x); in _tanhf4()
95 tresult = spu_madd(x2, spu_splats((float)TANH_TAY06), spu_splats((float)TANH_TAY05)); in _tanhf4()
96 tresult = spu_madd(x2, tresult, spu_splats((float)TANH_TAY04)); in _tanhf4()
97 tresult = spu_madd(x2, tresult, spu_splats((float)TANH_TAY03)); in _tanhf4()
98 tresult = spu_madd(x2, tresult, spu_splats((float)TANH_TAY02)); in _tanhf4()
99 tresult = spu_madd(x2, tresult, spu_splats((float)TANH_TAY01)); in _tanhf4()
Dsinhf4.h75 vec_float4 x2 = spu_mul(x,x); in _sinhf4() local
76 result = spu_madd(x2,f11,f09); in _sinhf4()
77 result = spu_madd(x2,result,f07); in _sinhf4()
78 result = spu_madd(x2,result,f05); in _sinhf4()
79 result = spu_madd(x2,result,f03); in _sinhf4()
80 result = spu_madd(x2,result,spu_splats(1.0f)); in _sinhf4()
Drecipd2.h78 vec_double2 x1, x2, x3; in _recipd2() local
107 x2 = spu_madd(spu_nmsub(value_d, x1, one_d), x1, x1); in _recipd2()
108 x3 = spu_madd(spu_nmsub(value_d, x2, one_d), x2, x2); in _recipd2()
156 x2 = spu_madd(spu_nmsub(value_d, x1, one_d), x1, x1); in _recipd2()
157 x3 = spu_madd(spu_nmsub(value_d, x2, one_d), x2, x2); in _recipd2()
Dlog2f.h77 float x2, x4; in _log2f() local
102 x2 = x * x; in _log2f()
103 x4 = x2 * x2; in _log2f()
Dlog2f4.h82 vector float x2, x4; in _log2f4() local
104 x2 = spu_mul(x, x); in _log2f4()
105 x4 = spu_mul(x2, x2); in _log2f4()
Dlog2d2.h78 vec_double2 x2, x4, x8, x10, p1, p2; in _log2d2() local
115 x2 = spu_mul(vxw, vxw); in _log2d2()
116 x4 = spu_mul(x2, x2); in _log2d2()
118 x10 = spu_mul(x8, x2); in _log2d2()
Dexp2d2.h95 vec_double2 p1, p2, x2, x4, x8; in _exp2d2() local
125 x2 = spu_mul(vxw, vxw); in _exp2d2()
128 x4 = spu_mul(x2, x2); in _exp2d2()
/picolibc-3.5.0-3.4.0/newlib/libm/common/
Dsincosf.h65 sincosf_poly (double x, double x2, const sincos_t *p, int n, float *sinp, in sincosf_poly() argument
70 x4 = x2 * x2; in sincosf_poly()
71 x3 = x2 * x; in sincosf_poly()
72 c2 = p->c3 + x2 * p->c4; in sincosf_poly()
73 s1 = p->s2 + x2 * p->s3; in sincosf_poly()
80 c1 = p->c0 + x2 * p->c1; in sincosf_poly()
81 x5 = x3 * x2; in sincosf_poly()
82 x6 = x4 * x2; in sincosf_poly()
94 sinf_poly (double x, double x2, const sincos_t *p, int n) in sinf_poly() argument
100 x3 = x * x2; in sinf_poly()
[all …]
Dsincosf.c51 double x2 = x * x; in sincosf() local
57 force_eval_float (x2); in sincosf()
63 sincosf_poly (x, x2, p, 0, sinp, cosp); in sincosf()
/picolibc-3.5.0-3.4.0/newlib/libm/complex/
Dcatan.c98 double a, t, x, x2, y; in __weak_alias() local
106 x2 = x * x; in __weak_alias()
107 a = 1.0 - x2 - (y * y); in __weak_alias()
115 a = x2 + (t * t); in __weak_alias()
120 a = (x2 + (t * t))/a; in __weak_alias()
Dcatanf.c47 float a, t, x, x2, y; in __weak_alias() local
55 x2 = x * x; in __weak_alias()
56 a = 1.0f - x2 - (y * y); in __weak_alias()
64 a = x2 + (t * t); in __weak_alias()
69 a = (x2 + (t * t))/a; in __weak_alias()
Dcatanl.c46 long double a, t, x, x2, y; in __weak_alias() local
54 x2 = x * x; in __weak_alias()
55 a = 1.0L - x2 - (y * y); in __weak_alias()
63 a = x2 + (t * t); in __weak_alias()
68 a = (x2 + (t * t))/a; in __weak_alias()
Dcephes_subr.c90 double f, x, x2, y, y2, rn, t; in _ctans() local
100 x2 = 1.0; in _ctans()
110 x2 *= x; in _ctans()
112 t = y2 + x2; in _ctans()
120 x2 *= x; in _ctans()
122 t = y2 - x2; in _ctans()
Dcephes_subrf.c90 float f, x, x2, y, y2, rn, t, d; in _ctansf() local
99 x2 = 1.0f; in _ctansf()
109 x2 *= x; in _ctansf()
111 t = y2 + x2; in _ctansf()
119 x2 *= x; in _ctansf()
121 t = y2 - x2; in _ctansf()
Dcephes_subrl.c92 long double f, x, x2, y, y2, rn, t; in _ctansl() local
102 x2 = 1.0L; in _ctansl()
112 x2 *= x; in _ctansl()
114 t = y2 + x2; in _ctansl()
122 x2 *= x; in _ctansl()
124 t = y2 - x2; in _ctansl()

12