Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 118) sorted by relevance

12345

/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dsimdmath.h65 vector signed int quot;
66 vector signed int rem;
70 vector unsigned int quot;
71 vector unsigned int rem;
76 vector signed int absi4(vector signed int x);
77 vector float acosf4(vector float x);
78 vector float acoshf4(vector float x);
79 vector float asinf4(vector float x);
80 vector float asinhf4(vector float x);
81 vector float atanf4(vector float x);
[all …]
Ddivf4.h56 static __inline vector float _divf4(vector float a, vector float b) in _divf4()
81 vector float inv_b, err, q0, q1, q2; in _divf4()
82 vector float mult; in _divf4()
83 vector float mant_a, mant_b; in _divf4()
84 vector float one = spu_splats(1.0f); in _divf4()
85 vector unsigned int exp, exp_a, exp_b, overflow; in _divf4()
86 vector unsigned int exp_mask = (vec_uint4)spu_splats(0x7F800000); in _divf4()
114 q2 = (vector float)spu_add((vector unsigned int)(q1), 1); in _divf4()
116 q2 = spu_sel(q1, q2, spu_cmpgt((vector signed int)err, -1)); in _divf4()
128 exp_a = spu_and((vector unsigned int)a, exp_mask); in _divf4()
[all …]
Dvec_literal.h58 #define VEC_SPLAT_U8(_val) ((vector unsigned char)(_val))
59 #define VEC_SPLAT_S8(_val) ((vector signed char)(_val))
61 #define VEC_SPLAT_U16(_val) ((vector unsigned short)(_val))
62 #define VEC_SPLAT_S16(_val) ((vector signed short)(_val))
64 #define VEC_SPLAT_U32(_val) ((vector unsigned int)(_val))
65 #define VEC_SPLAT_S32(_val) ((vector signed int)(_val))
66 #define VEC_SPLAT_F32(_val) ((vector float)(_val))
68 #define VEC_SPLAT_U64(_val) ((vector unsigned long long)(_val))
69 #define VEC_SPLAT_S64(_val) ((vector signed long long)(_val))
70 #define VEC_SPLAT_F64(_val) ((vector double)(_val))
[all …]
Drecipf4.h56 static __inline vector float _recipf4(vector float a) in _recipf4()
77 vector float err, x0, x1; in _recipf4()
78 vector float mult; in _recipf4()
79 vector float mant_a; in _recipf4()
80 vector float one = spu_splats(1.0f); in _recipf4()
81 vector unsigned int exp, exp_a; in _recipf4()
82 vector unsigned int exp_mask = (vec_uint4)spu_splats(0x7F800000); in _recipf4()
103 x1 = (vector float)(spu_add((vector unsigned int)(x0), 1)); in _recipf4()
106 x1 = spu_sel(x0, x1, spu_cmpgt((vector signed int)(err), -1)); in _recipf4()
117 exp_a = spu_and((vector unsigned int)a, exp_mask); in _recipf4()
[all …]
Dexp2f4.h84 static __inline vector float _exp2f4(vector float x) in _exp2f4()
86 vector signed int ix; in _exp2f4()
87 vector unsigned int overflow, underflow; in _exp2f4()
88 vector float frac, frac2, frac4; in _exp2f4()
89 vector float exp_int, exp_frac; in _exp2f4()
90 vector float result; in _exp2f4()
91 vector float hi, lo; in _exp2f4()
93 vector float bias; in _exp2f4()
96 bias = (vector float)(spu_rlmaska((vector signed int)(x), -31)); in _exp2f4()
97 bias = (vector float)(spu_andc(spu_splats((unsigned int)0x3F7FFFFF), (vector unsigned int)bias)); in _exp2f4()
[all …]
Datanf4.h77 static __inline vector float _atanf4(vector float x) in _atanf4()
79 vector float bias; in _atanf4()
80 vector float x2, x3, x4, x8, x9; in _atanf4()
81 vector float hi, lo; in _atanf4()
82 vector float result; in _atanf4()
83 vector float inv_x; in _atanf4()
84 vector unsigned int sign; in _atanf4()
85 vector unsigned int select; in _atanf4()
87 sign = spu_sl(spu_rlmask((vector unsigned int)x, -31), 31); in _atanf4()
89 inv_x = (vector float)spu_xor((vector unsigned int)inv_x, spu_splats(0x80000000)); in _atanf4()
[all …]
Dhypotd2.h71 static __inline vector double _hypotd2(vector double x, vector double y) in _hypotd2()
73 vector unsigned long long emask = spu_splats(0x7FF0000000000000ull); in _hypotd2()
74 vector unsigned long long mmask = spu_splats(0x000FFFFFFFFFFFFFull); in _hypotd2()
75 vector signed long long bias = spu_splats(0x3FF0000000000000ll); in _hypotd2()
76 vector double oned = spu_splats(1.0); in _hypotd2()
77 vector double sbit = spu_splats(-0.0); in _hypotd2()
78 vector double inf = (vector double)spu_splats(0x7FF0000000000000ull); in _hypotd2()
79 vector double max, max_e, max_m; in _hypotd2()
80 vector double min, min_e, min_m; in _hypotd2()
81 vector unsigned long long xgty; in _hypotd2()
[all …]
Datan2f4.h67 static __inline vector float _atan2f4(vector float y, vector float x) in _atan2f4()
69 vector float pi = spu_splats((float)SM_PI); in _atan2f4()
70 vector float zero = spu_splats(0.0f); in _atan2f4()
71 vector unsigned int quad1; in _atan2f4()
72 vector unsigned int quad4; in _atan2f4()
73 vector float result; in _atan2f4()
75 vector unsigned int xlt0; in _atan2f4()
76 vector unsigned int yge0; in _atan2f4()
77 vector unsigned int ylt0; in _atan2f4()
Datan2d2.h67 static __inline vector double _atan2d2(vector double y, vector double x) in _atan2d2()
70 vector double pi = spu_splats(SM_PI); in _atan2d2()
71 vector unsigned long long ones = spu_splats(0xFFFFFFFFFFFFFFFFull); in _atan2d2()
72 vector unsigned long long quad1; in _atan2d2()
73 vector unsigned long long quad4; in _atan2d2()
74 vector double result; in _atan2d2()
76 vector unsigned long long xlt0; in _atan2d2()
77 vector unsigned long long yge0; in _atan2d2()
78 vector unsigned long long ylt0; in _atan2d2()
Dhypotf4.h74 static __inline vector float _hypotf4(vector float x, vector float y) in _hypotf4()
76 vector unsigned int emask = spu_splats(0x7F800000u); in _hypotf4()
77 vector unsigned int mmask = spu_splats(0x007FFFFFu); in _hypotf4()
78 vector signed int bias = spu_splats(0x3F800000); in _hypotf4()
79 vector float inf = (vec_float4)spu_splats(0x7F800000); in _hypotf4()
80 vector float onef = spu_splats(1.0f); in _hypotf4()
81 vector float sbit = spu_splats(-0.0f); in _hypotf4()
82 vector float max, max_e, max_m; in _hypotf4()
83 vector float min, min_e, min_m; in _hypotf4()
84 vector unsigned int xgty; in _hypotf4()
[all …]
Dtanhf4.h69 static __inline vector float _tanhf4(vector float x) in _tanhf4()
71 vector float signbit = spu_splats(-0.0f); in _tanhf4()
72 vector float onef = spu_splats(1.0f); in _tanhf4()
73 vector float twof = spu_splats(2.0f); in _tanhf4()
74 vector float xabs; in _tanhf4()
75 vector float x2; in _tanhf4()
76 vector unsigned int gttaylor; in _tanhf4()
77 vector float e; in _tanhf4()
78 vector float tresult; in _tanhf4()
79 vector float eresult; in _tanhf4()
[all …]
Dtanhd2.h91 static __inline vector double _tanhd2(vector double x) in _tanhd2()
93 vector double signbit = spu_splats(-0.0); in _tanhd2()
94 vector double oned = spu_splats(1.0); in _tanhd2()
95 vector double twod = spu_splats(2.0); in _tanhd2()
96 vector double infd = (vector double)spu_splats(0x7FF0000000000000ull); in _tanhd2()
97 vector double xabs; in _tanhd2()
98 vector double x2; in _tanhd2()
99 vector unsigned long long gttaylor; in _tanhd2()
100 vector double e; in _tanhd2()
101 vector double tresult; in _tanhd2()
[all …]
Datand2.h67 static __inline vector double _atand2(vector double x) in _atand2()
69 vector double signbit = spu_splats(-0.0); in _atand2()
70 vector double oned = spu_splats(1.0); in _atand2()
71 vector double pi2 = spu_splats(SM_PI_2); in _atand2()
72 vector double xabs, x1; in _atand2()
73 vector double result; in _atand2()
74 vector unsigned long long gt1; in _atand2()
85 vector double x1squ = spu_mul(x1, x1); in _atand2()
Dlog2f4.h78 static __inline vector float _log2f4(vector float x) in _log2f4()
80 vector signed int exponent; in _log2f4()
81 vector float result; in _log2f4()
82 vector float x2, x4; in _log2f4()
83 vector float hi, lo; in _log2f4()
87 exponent = (vector signed int)spu_and(spu_rlmask((vector unsigned int)(x), -23), 0xFF); in _log2f4()
92 x = (vector float)spu_sub((vector signed int)(x), spu_sl(exponent, 23)); in _log2f4()
Dtgammaf4.h92 static __inline vector float _tgammaf4(vector float x) in _tgammaf4()
94 vector float signbit = spu_splats(-0.0f); in _tgammaf4()
95 vector float zerof = spu_splats(0.0f); in _tgammaf4()
96 vector float halff = spu_splats(0.5f); in _tgammaf4()
97 vector float onef = spu_splats(1.0f); in _tgammaf4()
98 vector float ninep9f = (vector float)spu_splats(0x411FFFFF); /* Next closest to 10.0 */ in _tgammaf4()
99 vector float t38f = spu_splats(38.0f); in _tgammaf4()
100 vector float pi = spu_splats((float)SM_PI); in _tgammaf4()
101 vector float sqrt2pi = spu_splats(2.506628274631000502415765284811f); in _tgammaf4()
102 vector float inf = (vec_float4)spu_splats(0x7F800000); in _tgammaf4()
[all …]
Dtgammaf.h44 vector float vx; in _tgammaf()
45 vector float truncx; in _tgammaf()
46 vector float vc = { 0.0, 0.0 }; in _tgammaf()
47 vector unsigned int cmpres; in _tgammaf()
48 vector signed int verrno, ferrno; in _tgammaf()
49 vector signed int fail = { EDOM, EDOM, EDOM, EDOM }; in _tgammaf()
60 ferrno = spu_sel(verrno, fail, (vector unsigned int) cmpres); in _tgammaf()
62 errno = spu_extract(spu_sel(verrno, ferrno, (vector unsigned int) cmpres), 0); in _tgammaf()
Dtgamma.h44 vector double vx; in _tgamma()
45 vector double truncx; in _tgamma()
46 vector double vc = { 0.0, 0.0 }; in _tgamma()
47 vector unsigned long long cmpres; in _tgamma()
48 vector signed int verrno, ferrno; in _tgamma()
49 vector signed int fail = { EDOM, EDOM, EDOM, EDOM }; in _tgamma()
61 ferrno = spu_sel(verrno, fail, (vector unsigned int) cmpres); in _tgamma()
63 errno = spu_extract(spu_sel(verrno, ferrno, (vector unsigned int) cmpres), 0); in _tgamma()
Dtgammad2.h145 static __inline vector double _tgammad2(vector double x) in _tgammad2()
147 vector double signbit = spu_splats(-0.0); in _tgammad2()
148 vector double zerod = spu_splats(0.0); in _tgammad2()
149 vector double halfd = spu_splats(0.5); in _tgammad2()
150 vector double oned = spu_splats(1.0); in _tgammad2()
151 vector double ninep9d = (vec_double2)spu_splats(0x4023FFFFFFFFFFFFull); in _tgammad2()
152 vector double twohd = spu_splats(200.0); in _tgammad2()
153 vector double pi = spu_splats(SM_PI); in _tgammad2()
154 vector double sqrt2pi = spu_splats(2.50662827463100050241576528481); in _tgammad2()
155 vector double inf = (vector double)spu_splats(0x7FF0000000000000ull); in _tgammad2()
[all …]
Dlogbf4.h62 static __inline vector float _logbf4(vector float x) in _logbf4()
64 vec_uint4 lzero = (vector unsigned int) {0, 0, 0, 0}; in _logbf4()
65 vec_uint4 exp_mask = (vector unsigned int) {0xFF, 0xFF, 0xFF, 0xFF}; in _logbf4()
66 vec_int4 exp_shift = (vector signed int) { -23, -23, -23, -23}; in _logbf4()
67 vec_int4 exp_bias = (vector signed int) {-127, -127, -127, -127}; in _logbf4()
68 vec_uint4 sign_mask = (vector unsigned int) {0x80000000, 0x80000000, in _logbf4()
70 vec_uint4 linf = (vector unsigned int) {0x7F800000, 0x7F800000, in _logbf4()
72 vec_uint4 lminf = (vector unsigned int) {0xFF800000, 0xFF800000, in _logbf4()
Dexpm1f4.h75 static __inline vector float _expm1f4(vector float x) in _expm1f4()
77 vector float onef = spu_splats(1.0f); in _expm1f4()
78 vector float rangelo = spu_splats(-0.4f); in _expm1f4()
79 vector float rangehi = spu_splats(0.35f); in _expm1f4()
80 vector unsigned int use_exp; in _expm1f4()
81 vector float pr, qr; in _expm1f4()
82 vector float eresult; in _expm1f4()
83 vector float rresult; in _expm1f4()
84 vector float result; in _expm1f4()
Dlog1pd2.h78 static __inline vector double _log1pd2(vector double x) in _log1pd2()
80 vector double oned = spu_splats(1.0); in _log1pd2()
81 vector double rangehi = spu_splats(0.35); in _log1pd2()
82 vector double rangelo = spu_splats(0.0); in _log1pd2()
83 vector unsigned long long use_log; in _log1pd2()
84 vector double pr, qr; in _log1pd2()
85 vector double eresult; in _log1pd2()
86 vector double rresult; in _log1pd2()
87 vector double result; in _log1pd2()
91 volatile vector double xbug = x; in _log1pd2()
Ddom_chkd_less_than.h45 static __inline void dom_chkd_less_than (vector double vx, vector double vc) in dom_chkd_less_than()
47 vector unsigned long long domain; in dom_chkd_less_than()
48 vector signed int verrno; in dom_chkd_less_than()
49 vector signed int fail = { EDOM, EDOM, EDOM, EDOM }; in dom_chkd_less_than()
58 errno = spu_extract(spu_sel(verrno, fail, (vector unsigned int) domain), 0); in dom_chkd_less_than()
Ddom_chkd_negone_one.h54 static __inline void dom_chkd_negone_one (vector double vx) in dom_chkd_negone_one()
56 vector unsigned long long domain; in dom_chkd_negone_one()
57 vector signed int verrno; in dom_chkd_negone_one()
58 vector double ones = { 1.0, 1.0 }; in dom_chkd_negone_one()
59 vector signed int fail = { EDOM, EDOM, EDOM, EDOM }; in dom_chkd_negone_one()
68 errno = spu_extract(spu_sel(verrno, fail, (vector unsigned int) domain), 0); in dom_chkd_negone_one()
/picolibc-3.7.0-3.6.0/newlib/libm/test/
Dtest.h302 void test_math (int vector);
319 run_vector_1 (int vector,
325 test_acos(int vector);
328 test_acosf(int vector);
331 test_acosh(int vector);
334 test_acoshf(int vector);
337 test_asin(int vector);
340 test_asinf(int vector);
343 test_asinh(int vector);
346 test_asinhf(int vector);
[all …]
Dmath.c353 int vector, in finish() argument
363 (void) vector; in finish()
367 if (vector) in finish()
376 int vector, in finish2() argument
390 (void) vector; in finish2()
394 if (vector) in finish2()
407 int vector, in ffinish() argument
417 (void) vector; in ffinish()
421 if (vector) in ffinish()
430 int vector, in ffinish2() argument
[all …]

12345