/external/skia/src/opts/ |
D | SkNx_sse.h | 29 SkNx(const __m128& vec) : fVec(vec) {} in SkNx() 32 SkNx(float val) : fVec(_mm_set1_ps(val)) {} in SkNx() 36 SkNx(float a, float b) : fVec(_mm_setr_ps(a,b,0,0)) {} in SkNx() 38 void store(void* ptr) const { _mm_storel_pi((__m64*)ptr, fVec); } in store() 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); } 45 SkNx operator == (const SkNx& o) const { return _mm_cmpeq_ps (fVec, o.fVec); } 46 SkNx operator != (const SkNx& o) const { return _mm_cmpneq_ps(fVec, o.fVec); } [all …]
|
D | SkNx_neon.h | 29 } return fVec 35 } return fVec 43 case 31: return op(v, 31); } return fVec 48 SkNx(float32x2_t vec) : fVec(vec) {} in SkNx() 51 SkNx(float val) : fVec(vdup_n_f32(val)) {} in SkNx() 53 SkNx(float a, float b) { fVec = (float32x2_t) { a, b }; } in SkNx() 55 void store(void* ptr) const { vst1_f32((float*)ptr, fVec); } in store() 58 float32x2_t est0 = vrecpe_f32(fVec), in approxInvert() 59 est1 = vmul_f32(vrecps_f32(est0, fVec), est0); in approxInvert() 63 float32x2_t est1 = this->approxInvert().fVec, in invert() [all …]
|
D | Sk4px_NEON.h | 24 vst1q_u32(px, (uint32x4_t)this->fVec); in store4() 27 vst1_u32(px, (uint32x2_t)vget_low_u8(this->fVec)); in store2() 30 vst1q_lane_u32(px, (uint32x4_t)this->fVec, 0); in store1() 34 return Sk16h(vmovl_u8(vget_low_u8 (this->fVec)), in widenLo() 35 vmovl_u8(vget_high_u8(this->fVec))); in widenLo() 39 return Sk16h(vshll_n_u8(vget_low_u8 (this->fVec), 8), in widenHi() 40 vshll_n_u8(vget_high_u8(this->fVec), 8)); in widenHi() 44 auto zipped = vzipq_u8(this->fVec, this->fVec); in widenLoHi() 50 return Sk16h(vmull_u8(vget_low_u8 (this->fVec), vget_low_u8 (other.fVec)), in mulWiden() 51 vmull_u8(vget_high_u8(this->fVec), vget_high_u8(other.fVec))); in mulWiden() [all …]
|
D | Sk4px_SSE2.h | 20 inline void Sk4px::store4(SkPMColor px[4]) const { _mm_storeu_si128((__m128i*)px, this->fVec); } in store4() 21 inline void Sk4px::store2(SkPMColor px[2]) const { _mm_storel_epi64((__m128i*)px, this->fVec); } in store2() 22 inline void Sk4px::store1(SkPMColor px[1]) const { *px = _mm_cvtsi128_si32(this->fVec); } in store1() 25 return Sk16h(_mm_unpacklo_epi8(this->fVec, _mm_setzero_si128()), in widenLo() 26 _mm_unpackhi_epi8(this->fVec, _mm_setzero_si128())); in widenLo() 30 return Sk16h(_mm_unpacklo_epi8(_mm_setzero_si128(), this->fVec), in widenHi() 31 _mm_unpackhi_epi8(_mm_setzero_si128(), this->fVec)); in widenHi() 35 return Sk16h(_mm_unpacklo_epi8(this->fVec, this->fVec), in widenLoHi() 36 _mm_unpackhi_epi8(this->fVec, this->fVec)); in widenLoHi() 45 return Sk4px(_mm_packus_epi16(r.fLo.fVec, r.fHi.fVec)); in addNarrowHi() [all …]
|
/external/skia/src/core/ |
D | SkXfermodeU64.cpp | 77 d4.store(d.fVec); in xfer_u64_1() 78 Sk4f r4 = unit_to_bias<D>(Sk4f::Load(proc(*src, d).fVec)); in xfer_u64_1() 83 bias_to_unit<D>(load_from_dst<D>(dst[i])).store(d.fVec); in xfer_u64_1() 84 Sk4f r4 = unit_to_bias<D>(Sk4f::Load(proc(*src, d).fVec)); in xfer_u64_1() 97 d4.store(d.fVec); in xfer_u64_n() 98 Sk4f r4 = unit_to_bias<D>(Sk4f::Load(proc(src[i], d).fVec)); in xfer_u64_n() 103 bias_to_unit<D>(load_from_dst<D>(dst[i])).store(d.fVec); in xfer_u64_n() 104 Sk4f r4 = unit_to_bias<D>(Sk4f::Load(proc(src[i], d).fVec)); in xfer_u64_n() 144 const Sk4f s4 = pm_to_rgba_order(unit_to_bias<D>(Sk4f::Load(src->fVec))); in src_1() 159 const Sk4f s4 = pm_to_rgba_order(unit_to_bias<D>(Sk4f::Load(src[i].fVec))); in src_n() [all …]
|
D | SkColorSpace.cpp | 77 SkDebugf("[%7.4f %7.4f %7.4f]\n", fVec[0], fVec[1], fVec[2]); in dump() 98 SkASSERT(SkFloatIsFinite(gamma.fVec[i])); in SkColorSpace() 107 if (!SkFloatIsFinite(gamma.fVec[i]) || gamma.fVec[i] < 0) { in NewRGB() 200 Sk4f r = Sk4f(src[i].fVec[SkPM4f::R]); in SkApply3x3ToPM4f() 201 Sk4f g = Sk4f(src[i].fVec[SkPM4f::G]); in SkApply3x3ToPM4f() 202 Sk4f b = Sk4f(src[i].fVec[SkPM4f::B]); in SkApply3x3ToPM4f() 203 Sk4f a = Sk4f(0, 0, 0, src[i].fVec[SkPM4f::A]); in SkApply3x3ToPM4f()
|
D | SkXfermode4f.cpp | 50 d4.store(d.fVec); in general_1() 51 Sk4f r4 = Sk4f::Load(proc(*src, d).fVec); in general_1() 56 load_dst<D>(dst[i]).store(d.fVec); in general_1() 57 Sk4f r4 = Sk4f::Load(proc(*src, d).fVec); in general_1() 70 d4.store(d.fVec); in general_n() 71 Sk4f r4 = Sk4f::Load(proc(src[i], d).fVec); in general_n() 76 load_dst<D>(dst[i]).store(d.fVec); in general_n() 77 Sk4f r4 = Sk4f::Load(proc(src[i], d).fVec); in general_n() 144 Sk4f r4 = Sk4f::Load(src[i].fVec); // src always overrides dst in src_n() 159 const Sk4f s4 = Sk4f::Load(src->fVec); in src_1() [all …]
|
D | SkSpanProcs.cpp | 25 (SkNx_cast<float>(Sk4b::Load(&addr[i])) * Sk4f(1.0f/255)).store(span[i].fVec); in load_l32() 35 srgb_to_linear(SkNx_cast<float>(Sk4b::Load(&addr[i])) * Sk4f(1.0f/255)).store(span[i].fVec); in load_s32() 45 SkHalfToFloat_01(addr[i]).store(span[i].fVec); in load_f16() 72 (Sk4f::Load(span[i].fVec) * scale).store(span[i].fVec); in alpha_filterspan()
|
D | SkColor.cpp | 117 float alpha = fVec[A]; in unpremul() 122 return { alpha, fVec[R] * invAlpha, fVec[G] * invAlpha, fVec[B] * invAlpha }; in unpremul() 128 half[i] = SkFloatToHalf(fVec[i]); in toF16() 149 auto c4 = Sk4f::Load(fVec); in assertIsUnit()
|
D | SkPM4f.h | 23 float fVec[4]; member 25 float a() const { return fVec[A]; } in a()
|
D | SkHalf.h | 96 float32x4_t vec = fs.fVec; in SkFloatToHalf_01() 108 __m128i h = _mm_srli_epi32(_mm_castps_si128(_mm_mul_ps(fs.fVec, rebias)), 13); in SkFloatToHalf_01()
|
D | SkColorSpace.h | 27 float fVec[3]; member
|
D | SkColorFilter.cpp | 40 SkNx_cast<uint8_t>(Sk4f::Load(span[i].fVec) * Sk4f(255) + Sk4f(0.5f)).store(&tmp[i]); in filterSpan4f()
|
D | SkXfermode.cpp | 921 x.store(pm4.fVec); in as_pm4f() 926 return Sk4f::Load(pm4.fVec); in as_4f() 935 SkASSERT(r.fVec[i] >= min && r.fVec[i] <= max); in assert_unit()
|
/external/skia/tests/ |
D | SkColor4fTest.cpp | 27 if (!nearly_equal(a.fVec[i], b.fVec[i], tol)) { in nearly_equal() 63 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); in DEF_TEST() 64 REPORTER_ASSERT(reporter, pm4.fVec[SK_R_INDEX] == c4.fA * c4.fR); in DEF_TEST() 65 REPORTER_ASSERT(reporter, pm4.fVec[SK_G_INDEX] == c4.fA * c4.fG); in DEF_TEST() 66 REPORTER_ASSERT(reporter, pm4.fVec[SK_B_INDEX] == c4.fA * c4.fB); in DEF_TEST() 72 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); in DEF_TEST() 73 REPORTER_ASSERT(reporter, nearly_equal(pm4.fVec[SK_R_INDEX], c4.fA * c4.fR)); in DEF_TEST() 74 REPORTER_ASSERT(reporter, nearly_equal(pm4.fVec[SK_G_INDEX], c4.fA * c4.fG)); in DEF_TEST() 75 REPORTER_ASSERT(reporter, nearly_equal(pm4.fVec[SK_B_INDEX], c4.fA * c4.fB)); in DEF_TEST()
|
D | Float16Test.cpp | 28 if (!eq_within_half_float(a.fVec[i], b.fVec[i])) { in eq_within_half_float()
|
/external/skia/src/effects/gradients/ |
D | Sk4fGradientBase.cpp | 43 c4f0.store(&fC0.fVec); in Interval() 44 dc4f.store(&fDc.fVec); in Interval() 53 c0.store(fC0.fVec); in Interval() 54 dc.store(fDc.fVec); in Interval() 216 Sk4f dc = Sk4f::Load(interval.fDc.fVec); in GradientShaderBase4fContext() 217 Sk4f c = Sk4f::Load(interval.fC0.fVec) + dc * Sk4f(p1 - p0); in GradientShaderBase4fContext()
|
D | Sk4fLinearGradient.cpp | 313 fDc = Sk4f::Load(fInterval->fDc.fVec); in compute_interval_props() 314 fCc = Sk4f::Load(fInterval->fC0.fVec); in compute_interval_props()
|
/external/icu/icu4c/source/i18n/ |
D | uspoof_conf.cpp | 73 SPUStringPool::SPUStringPool(UErrorCode &status) : fVec(NULL), fHash(NULL) { in SPUStringPool() 74 fVec = new UVector(status); in SPUStringPool() 84 for (i=fVec->size()-1; i>=0; i--) { in ~SPUStringPool() 85 SPUString *s = static_cast<SPUString *>(fVec->elementAt(i)); in ~SPUStringPool() 88 delete fVec; in ~SPUStringPool() 94 return fVec->size(); in size() 98 SPUString *retString = (SPUString *)fVec->elementAt(index); in getByIndex() 125 fVec->sort(SPUStringCompare, status); in sort() 136 fVec->addElement(hashedString, status); in addString()
|
D | uspoof_conf.h | 73 UVector *fVec; // Elements are SPUString *
|
/external/skia/bench/ |
D | MathBench.cpp | 458 SkVector fVec[ARRAY]; member in NormalizeBench 464 fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in NormalizeBench() 483 accum += fVec[i].normalize(); in onDraw()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | SpoofChecker.java | 1381 fVec = new Vector<SPUString>(); 1386 return fVec.size(); 1391 SPUString retString = fVec.elementAt(index); 1403 fVec.addElement(hashedString); 1410 Collections.sort(fVec, new SPUStringComparator()); 1413 private Vector<SPUString> fVec; // Elements are SPUString *
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | SpoofChecker.java | 1418 fVec = new Vector<SPUString>(); 1423 return fVec.size(); 1428 SPUString retString = fVec.elementAt(index); 1440 fVec.addElement(hashedString); 1447 Collections.sort(fVec, new SPUStringComparator()); 1450 private Vector<SPUString> fVec; // Elements are SPUString *
|