Home
last modified time | relevance | path

Searched refs:SkNx (Results 1 – 5 of 5) sorted by relevance

/external/skia/src/opts/
DSkNx_sse.h27 class SkNx<2, float> {
29 SkNx(const __m128& vec) : fVec(vec) {} in SkNx() function
31 SkNx() {} in SkNx() function
32 SkNx(float val) : fVec(_mm_set1_ps(val)) {} in SkNx() function
33 static SkNx Load(const void* ptr) { in Load()
36 SkNx(float a, float b) : fVec(_mm_setr_ps(a,b,0,0)) {} in SkNx() function
40 SkNx operator + (const SkNx& o) const { return _mm_add_ps(fVec, o.fVec); }
41 SkNx operator - (const SkNx& o) const { return _mm_sub_ps(fVec, o.fVec); }
42 SkNx operator * (const SkNx& o) const { return _mm_mul_ps(fVec, o.fVec); }
43 SkNx operator / (const SkNx& o) const { return _mm_div_ps(fVec, o.fVec); }
[all …]
DSkNx_neon.h46 class SkNx<2, float> {
48 SkNx(float32x2_t vec) : fVec(vec) {} in SkNx() function
50 SkNx() {} in SkNx() function
51 SkNx(float val) : fVec(vdup_n_f32(val)) {} in SkNx() function
52 static SkNx Load(const void* ptr) { return vld1_f32((const float*)ptr); } in Load()
53 SkNx(float a, float b) { fVec = (float32x2_t) { a, b }; } in SkNx() function
57 SkNx approxInvert() const { in approxInvert()
62 SkNx invert() const { in invert()
68 SkNx operator + (const SkNx& o) const { return vadd_f32(fVec, o.fVec); }
69 SkNx operator - (const SkNx& o) const { return vsub_f32(fVec, o.fVec); }
[all …]
/external/skia/src/core/
DSkNx.h21 class SkNx {
23 SkNx() {} in SkNx() function
24 SkNx(T val) : fLo(val), fHi(val) {} in SkNx() function
26 typedef SkNx<N/2, T> Half;
27 SkNx(const Half& lo, const Half& hi) : fLo(lo), fHi(hi) {} in SkNx() function
29 SkNx(T a, T b) : fLo(a), fHi(b) {} in SkNx() function
30 SkNx(T a, T b, T c, T d) : fLo(a,b), fHi(c,d) {} in SkNx() function
31 SkNx(T a, T b, T c, T d, T e, T f, T g, T h) : fLo(a,b,c,d), fHi(e,f,g,h) {} in SkNx() function
32 SkNx(T a, T b, T c, T d, T e, T f, T g, T h, in SkNx() function
35 static SkNx Load(const void* ptr) { in Load()
[all …]
/external/skia/tests/
DSkNxTest.cpp16 auto assert_nearly_eq = [&](float eps, const SkNx<N, float>& v, in test_Nf()
30 auto assert_eq = [&](const SkNx<N, float>& v, float a, float b, float c, float d) { in test_Nf()
35 SkNx<N,float> a = SkNx<N,float>::Load(vals), in test_Nf()
38 SkNx<N,float> d; in test_Nf()
51 assert_eq(SkNx<N,float>(0)-a, -3, -4, -5, -6); in test_Nf()
53 SkNx<N,float> fours(4); in test_Nf()
63 assert_eq(SkNx<N,float>::Min(a, fours), 3, 4, 4, 4); in test_Nf()
64 assert_eq(SkNx<N,float>::Max(a, fours), 4, 4, 5, 6); in test_Nf()
85 auto assert_eq = [&](const SkNx<N,T>& v, T a, T b, T c, T d, T e, T f, T g, T h) { in test_Ni()
103 SkNx<N,T> a = SkNx<N,T>::Load(vals), in test_Ni()
[all …]
/external/skia/gyp/
Dcore.gypi181 '<(skia_src_path)/core/SkNx.h',