Lines Matching refs:SkNi
33 using SkNi = SkNx<N, int32_t>; variable
168 SI SkNx<N,T> gather(size_t tail, const T* src, const SkNi& offset) { in gather()
217 return SkNi::Load(masks + tail).fVec; in mask()
220 SI SkNi load(size_t tail, const int32_t* src) { in load()
222 : SkNi::Load(src); in load()
232 SI SkNi gather(size_t tail, const int32_t* src, const SkNi& offset) { in gather()
234 return _mm256_mask_i32gather_epi32(SkNi(0).fVec, (const int*)src, offset.fVec, m, 4); in gather()
236 SI SkNu gather(size_t tail, const uint32_t* src, const SkNi& offset) { in gather()
238 return _mm256_mask_i32gather_epi32(SkNi(0).fVec, (const int*)src, offset.fVec, m, 4); in gather()
240 SI SkNf gather(size_t tail, const float* src, const SkNi& offset) { in gather()
247 SI void store(size_t tail, const SkNi& v, int32_t* dst) { in store()
272 SI SkNi SkNf_round(const SkNf& x, const SkNf& scale) { in SkNf_round()
277 SI SkNf SkNf_from_byte(const SkNi& x) { in SkNf_from_byte()
283 SI SkNf SkNf_from_byte(const SkNu& x) { return SkNf_from_byte(SkNi::Load(&x)); } in SkNf_from_byte()
609 case 0: return SkNi::Load(&v) & 0xff; // R in STAGE_CTX()
610 case 3: return SkNi::Load(&v) << 24; // A in STAGE_CTX()
612 return (SkNi::Load(&v) & 0xff) << (8*ix); // B or G in STAGE_CTX()
674 auto to_int = [](const SkNu& v) { return SkNi::Load(&v); }; in STAGE_CTX()
1068 SI SkNi offset_and_ptr(T** ptr, const SkImageShaderContext* ctx, const SkNf& x, const SkNf& y) { in offset_and_ptr()
1069 SkNi ix = SkNx_cast<int>(x), in offset_and_ptr()
1071 SkNi offset = iy*ctx->stride + ix; in offset_and_ptr()
1079 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()
1086 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()
1088 SkNi ix = SkNx_cast<int>(gather(tail, p, offset)); in STAGE_CTX()
1093 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()
1100 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()
1107 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()
1113 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()
1119 SkNi offset = offset_and_ptr(&p, ctx, r, g); in STAGE_CTX()