OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SkNx
(Results
1 - 4
of
4
) sorted by null
/external/skia/src/opts/
SkNx_sse.h
27
class
SkNx
<2, float> {
29
SkNx
(const __m128& vec) : fVec(vec) {}
31
SkNx
() {}
32
SkNx
(float val) : fVec(_mm_set1_ps(val)) {}
33
static
SkNx
Load(const void* ptr) {
36
SkNx
(float a, float b) : fVec(_mm_setr_ps(a,b,0,0)) {}
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);
[
all
...]
SkNx_neon.h
46
class
SkNx
<2, float> {
48
SkNx
(float32x2_t vec) : fVec(vec) {}
50
SkNx
() {}
51
SkNx
(float val) : fVec(vdup_n_f32(val)) {}
52
static
SkNx
Load(const void* ptr) { return vld1_f32((const float*)ptr); }
53
SkNx
(float a, float b) { fVec = (float32x2_t) { a, b }; }
57
SkNx
approxInvert() const {
62
SkNx
invert() const {
68
SkNx
operator + (const
SkNx
& o) const { return vadd_f32(fVec, o.fVec);
[
all
...]
/external/skia/src/core/
SkNx.h
21
class
SkNx
{
23
SkNx
() {}
24
SkNx
(T val) : fLo(val), fHi(val) {}
26
typedef
SkNx
<N/2, T> Half;
27
SkNx
(const Half& lo, const Half& hi) : fLo(lo), fHi(hi) {}
29
SkNx
(T a, T b) : fLo(a), fHi(b) {}
30
SkNx
(T a, T b, T c, T d) : fLo(a,b), fHi(c,d) {}
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) {}
32
SkNx
(T a, T b, T c, T d, T e, T f, T g, T h,
35
static
SkNx
Load(const void* ptr)
[
all
...]
/external/skia/tests/
SkNxTest.cpp
9
#include "
SkNx
.h"
16
auto assert_nearly_eq = [&](float eps, const
SkNx
<N, float>& v,
30
auto assert_eq = [&](const
SkNx
<N, float>& v, float a, float b, float c, float d) {
35
SkNx
<N,float> a =
SkNx
<N,float>::Load(vals),
38
SkNx
<N,float> d;
51
assert_eq(
SkNx
<N,float>(0)-a, -3, -4, -5, -6);
53
SkNx
<N,float> fours(4);
63
assert_eq(
SkNx
<N,float>::Min(a, fours), 3, 4, 4, 4);
64
assert_eq(
SkNx
<N,float>::Max(a, fours), 4, 4, 5, 6)
[
all
...]
Completed in 607 milliseconds