Home | History | Annotate | Download | only in opts

Lines Matching defs:Sk4px

10 static_assert(sizeof(Sk4px) == 16, "This file uses memcpy / sk_memset32, so exact size matters.");
12 inline Sk4px::Sk4px(SkPMColor px) {
16 inline Sk4px Sk4px::Load4(const SkPMColor px[4]) {
17 Sk4px px4 = Sk16b();
22 inline Sk4px Sk4px::Load2(const SkPMColor px[2]) {
23 Sk4px px2 = Sk16b();
28 inline Sk4px Sk4px::Load1(const SkPMColor px[1]) {
29 Sk4px px1 = Sk16b();
34 inline void Sk4px::store4(SkPMColor px[4]) const { memcpy(px, this, 16); }
35 inline void Sk4px::store2(SkPMColor px[2]) const { memcpy(px, this, 8); }
36 inline void Sk4px::store1(SkPMColor px[1]) const { memcpy(px, this, 4); }
38 inline Sk4px::Wide Sk4px::widenLo() const {
45 inline Sk4px::Wide Sk4px::widenHi() const { return this->widenLo() << 8; }
47 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const {
48 return this->widenLo() * Sk4px(other).widenLo();
51 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const {
52 Sk4px::Wide r = (*this + other) >> 8;
59 inline Sk4px Sk4px::alphas() const {
67 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) {
74 inline Sk4px Sk4px::Load2Alphas(const SkAlpha a[2]) {
81 inline Sk4px Sk4px::zeroAlphas() const {
89 inline Sk4px Sk4px::zeroColors() const {