/external/skia/src/opts/ |
D | SkNx_neon.h | 28 AI SkNx(float32x2_t vec) : fVec(vec) {} in SkNx() 31 AI SkNx(float val) : fVec(vdup_n_f32(val)) {} in SkNx() 32 AI SkNx(float a, float b) { fVec = (float32x2_t) { a, b }; } in SkNx() 35 AI void store(void* ptr) const { vst1_f32((float*)ptr, fVec); } in store() 38 float32x2_t est0 = vrecpe_f32(fVec), in invert() 39 est1 = vmul_f32(vrecps_f32(est0, fVec), est0); in invert() 43 AI SkNx operator + (const SkNx& o) const { return vadd_f32(fVec, o.fVec); } 44 AI SkNx operator - (const SkNx& o) const { return vsub_f32(fVec, o.fVec); } 45 AI SkNx operator * (const SkNx& o) const { return vmul_f32(fVec, o.fVec); } 48 return vdiv_f32(fVec, o.fVec); [all …]
|
D | SkNx_sse.h | 21 AI SkNx(const __m128& vec) : fVec(vec) {} in SkNx() 24 AI SkNx(float val) : fVec(_mm_set1_ps(val)) {} in SkNx() 28 AI SkNx(float a, float b) : fVec(_mm_setr_ps(a,b,0,0)) {} in SkNx() 30 AI void store(void* ptr) const { _mm_storel_pi((__m64*)ptr, fVec); } in store() 32 AI SkNx operator + (const SkNx& o) const { return _mm_add_ps(fVec, o.fVec); } 33 AI SkNx operator - (const SkNx& o) const { return _mm_sub_ps(fVec, o.fVec); } 34 AI SkNx operator * (const SkNx& o) const { return _mm_mul_ps(fVec, o.fVec); } 35 AI SkNx operator / (const SkNx& o) const { return _mm_div_ps(fVec, o.fVec); } 37 AI SkNx operator == (const SkNx& o) const { return _mm_cmpeq_ps (fVec, o.fVec); } 38 AI SkNx operator != (const SkNx& o) const { return _mm_cmpneq_ps(fVec, o.fVec); } [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 …]
|
D | SkRasterPipeline_opts.h | 217 return SkNi::Load(masks + tail).fVec; in mask() 234 return _mm256_mask_i32gather_epi32(SkNi(0).fVec, (const int*)src, offset.fVec, m, 4); in gather() 238 return _mm256_mask_i32gather_epi32(SkNi(0).fVec, (const int*)src, offset.fVec, m, 4); in gather() 242 return _mm256_mask_i32gather_ps(SkNf(0).fVec, (const float*)src, offset.fVec, m, 4); in gather() 249 _mm256_maskstore_epi32((int*)dst, mask(tail), v.fVec); in store() 256 _mm256_maskstore_epi32((int*)dst, mask(tail), v.fVec); in store() 263 _mm256_maskstore_ps((float*)dst, mask(tail), v.fVec); in store()
|
/external/skia/src/core/ |
D | Sk4x4f.h | 36 auto r = x.fVec, in Transpose() 37 g = y.fVec, in Transpose() 38 b = z.fVec, in Transpose() 39 a = w.fVec; in Transpose() 69 auto R = _mm_cvttps_epi32(r.fVec), in transpose() 70 G = _mm_slli_epi32(_mm_cvttps_epi32(g.fVec), 8), in transpose() 71 B = _mm_slli_epi32(_mm_cvttps_epi32(b.fVec), 16), in transpose() 72 A = _mm_slli_epi32(_mm_cvttps_epi32(a.fVec), 24); in transpose() 79 float32x4x2_t xy = vuzpq_f32(x.fVec, y.fVec), in Transpose() 80 zw = vuzpq_f32(z.fVec, w.fVec), in Transpose() [all …]
|
D | SkPM4f.h | 33 float fVec[4]; member 35 float r() const { return fVec[R]; } in r() 36 float g() const { return fVec[G]; } in g() 37 float b() const { return fVec[B]; } in b() 38 float a() const { return fVec[A]; } in a() 42 x.store(pm.fVec); in From4f() 48 Sk4f to4f() const { return Sk4f::Load(fVec); } in to4f()
|
D | SkXfermodeF16.cpp | 26 d4.store(d.fVec); in xfer_1() 27 Sk4f r4 = Sk4f::Load(proc(*src, d).fVec); in xfer_1() 32 SkHalfToFloat_finite_ftz(dst[i]).store(d.fVec); in xfer_1() 33 Sk4f r4 = Sk4f::Load(proc(*src, d).fVec); in xfer_1() 46 d4.store(d.fVec); in xfer_n() 47 Sk4f r4 = Sk4f::Load(proc(src[i], d).fVec); in xfer_n() 52 SkHalfToFloat_finite_ftz(dst[i]).store(d.fVec); in xfer_n() 53 Sk4f r4 = Sk4f::Load(proc(src[i], d).fVec); in xfer_n() 81 const Sk4f s4 = Sk4f::Load(src->fVec); in src_1() 97 const Sk4f s4 = Sk4f::Load(src[i].fVec); in src_n() [all …]
|
D | SkSpanProcs.cpp | 25 swizzle_rb_if_bgra(Sk4f_fromL32(addr[i])).store(span[i].fVec); in load_l32() 35 swizzle_rb_if_bgra(Sk4f_fromS32(addr[i])).store(span[i].fVec); in load_s32() 45 SkHalfToFloat_finite_ftz(addr[i]).store(span[i].fVec); in load_f16() 72 (Sk4f::Load(span[i].fVec) * scale).store(span[i].fVec); in alpha_filterspan()
|
D | SkXfermode4f.cpp | 15 return {{ x.fVec[2], x.fVec[1], x.fVec[0], x.fVec[3] }}; in rgba_to_pmcolor_order() 84 d4.store(d.fVec); in general_1() 85 Sk4f r4 = Sk4f::Load(proc(s, d).fVec); in general_1() 90 load_dst<D>(dst[i]).store(d.fVec); in general_1() 91 Sk4f r4 = Sk4f::Load(proc(s, d).fVec); in general_1() 104 d4.store(d.fVec); in general_n() 105 Sk4f r4 = Sk4f::Load(proc(rgba_to_pmcolor_order(src[i]), d).fVec); in general_n() 110 load_dst<D>(dst[i]).store(d.fVec); in general_n() 111 Sk4f r4 = Sk4f::Load(proc(rgba_to_pmcolor_order(src[i]), d).fVec); in general_n() 255 auto s = Sk4x4f::Transpose(src->fVec); in srcover_n()
|
D | SkHalf.h | 50 : [hs] "w" (hs.fVec)); // w: read-only NEON register in SkHalfToFloat_finite_ftz() 73 float32x4_t vec = fs.fVec; in SkFloatToHalf_finite_ftz() 94 return _mm256_cvtph_ps(hs.fVec); in SkHalfToFloat_finite_ftz() 107 return _mm256_cvtps_ph(fs.fVec, _MM_FROUND_CUR_DIRECTION); in SkFloatToHalf_finite_ftz()
|
D | SkColor.cpp | 115 float alpha = fVec[A]; in unpremul() 120 return { fVec[R] * invAlpha, fVec[G] * invAlpha, fVec[B] * invAlpha, alpha }; in unpremul() 126 half[i] = SkFloatToHalf(fVec[i]); in toF16() 147 auto c4 = Sk4f::Load(fVec); in assertIsUnit()
|
D | SkCanvas.cpp | 1646 __m128 lLtT = _mm_unpacklo_ps(devRect.fVec, devClip.fVec); in is_nan_or_clipped() 1647 __m128 RrBb = _mm_unpackhi_ps(devClip.fVec, devRect.fVec); in is_nan_or_clipped() 1651 float32x4_t lLtT = vzipq_f32(devRect.fVec, devClip.fVec).val[0]; in is_nan_or_clipped() 1652 float32x4_t RrBb = vzipq_f32(devClip.fVec, devRect.fVec).val[1]; in is_nan_or_clipped()
|
D | SkRasterPipelineBlitter.cpp | 119 &paintColor->fVec[SkPM4f::A]); in Create()
|
D | SkXfermode.cpp | 928 x.store(pm4.fVec); in as_pm4f() 933 return Sk4f::Load(pm4.fVec); in as_4f() 942 SkASSERT(r.fVec[i] >= min && r.fVec[i] <= max); in assert_unit()
|
/external/icu/icu4c/source/i18n/ |
D | uspoof_conf.cpp | 77 SPUStringPool::SPUStringPool(UErrorCode &status) : fVec(NULL), fHash(NULL) { in SPUStringPool() 78 fVec = new UVector(status); in SPUStringPool() 88 for (i=fVec->size()-1; i>=0; i--) { in ~SPUStringPool() 89 SPUString *s = static_cast<SPUString *>(fVec->elementAt(i)); in ~SPUStringPool() 92 delete fVec; in ~SPUStringPool() 98 return fVec->size(); in size() 102 SPUString *retString = (SPUString *)fVec->elementAt(index); in getByIndex() 129 fVec->sort(SPUStringCompare, status); in sort() 140 fVec->addElement(hashedString, status); in addString()
|
D | uspoof_conf.h | 77 UVector *fVec; // Elements are SPUString *
|
/external/skia/src/gpu/ |
D | SkGr.h | 83 pm4f.fVec[SkPM4f::R] = c.fRGBA[0]; in GrColor4fToSkPM4f() 84 pm4f.fVec[SkPM4f::G] = c.fRGBA[1]; in GrColor4fToSkPM4f() 85 pm4f.fVec[SkPM4f::B] = c.fRGBA[2]; in GrColor4fToSkPM4f() 86 pm4f.fVec[SkPM4f::A] = c.fRGBA[3]; in GrColor4fToSkPM4f()
|
/external/skia/tests/ |
D | Float16Test.cpp | 31 if (!eq_within_half_float(a.fVec[i], b.fVec[i])) { in eq_within_half_float()
|
D | SkColor4fTest.cpp | 63 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); in DEF_TEST()
|
/external/skia/src/effects/gradients/ |
D | Sk4fGradientPriv.h | 172 PM::apply(c).store(dst->fVec); 178 pmc.store(dst[i].fVec);
|
D | Sk4fGradientBase.cpp | 135 c0.store(&fC0.fVec); in Sk4fGradientInterval() 136 dc.store(&fDc.fVec); in Sk4fGradientInterval()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | SpoofChecker.java | 1066 fVec = new Vector<SPUString>(); 1071 return fVec.size(); 1076 SPUString retString = fVec.elementAt(index); 1088 fVec.addElement(hashedString); 1095 Collections.sort(fVec, SPUStringComparator.INSTANCE); 1098 private Vector<SPUString> fVec; // Elements are SPUString *
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | SpoofChecker.java | 1024 fVec = new Vector<SPUString>(); 1029 return fVec.size(); 1034 SPUString retString = fVec.elementAt(index); 1046 fVec.addElement(hashedString); 1053 Collections.sort(fVec, SPUStringComparator.INSTANCE); 1056 private Vector<SPUString> fVec; // Elements are SPUString *
|
/external/skia/bench/ |
D | MathBench.cpp | 450 SkVector fVec[ARRAY]; member in NormalizeBench 456 fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in NormalizeBench() 475 accum += fVec[i].normalize(); in onDraw()
|