Lines Matching refs:gather
141 SI T gather(const T* p, U32 ix) { return p[ix]; }
239 SI V<T> gather(const T* p, U32 ix) {
393 SI V<T> gather(const T* p, U32 ix) {
398 SI F gather(const float* p, U32 ix) { return _mm256_i32gather_ps (p, ix, 4); }
399 SI U32 gather(const uint32_t* p, U32 ix) { return _mm256_i32gather_epi32(p, ix, 4); }
400 SI U64 gather(const uint64_t* p, U32 ix) {
743 SI V<T> gather(const T* p, U32 ix) {
1840 r = from_byte(gather(tables->r, to_unorm(r, 255)));
1841 g = from_byte(gather(tables->g, to_unorm(g, 255)));
1842 b = from_byte(gather(tables->b, to_unorm(b, 255)));
1843 a = from_byte(gather(tables->a, to_unorm(a, 255)));
1952 a = from_byte(gather(ptr, ix));
1976 from_565(gather(ptr, ix), &r,&g,&b);
1999 from_4444(gather(ptr, ix), &r,&g,&b,&a);
2021 from_8888(gather(ptr, ix), &r,&g,&b,&a);
2048 from_88(gather(ptr, ix), &r, &g);
2072 a = from_short(gather(ptr, ix));
2095 from_1616(gather(ptr, ix), &r, &g);
2118 from_16161616(gather(ptr, ix), &r, &g, &b, &a);
2143 from_1010102(gather(ptr, ix), &r,&g,&b,&a);
2178 auto px = gather(ptr, ix);
2226 a = from_half(gather(ptr, ix));
2256 auto px = gather(ptr, ix);
2282 r = gather(ptr, 4*ix + 0);
2283 g = gather(ptr, 4*ix + 1);
2284 b = gather(ptr, 4*ix + 2);
2285 a = gather(ptr, 4*ix + 3);
2312 // The gather stages will hard clamp the output of these stages to [0,limit)...
2326 // After the gather stage, the r,g,b,a values are AND'd with this mask, setting them to 0
2441 fr = gather(c->fs[0], idx);
2442 br = gather(c->bs[0], idx);
2443 fg = gather(c->fs[1], idx);
2444 bg = gather(c->bs[1], idx);
2445 fb = gather(c->fs[2], idx);
2446 bb = gather(c->bs[2], idx);
2447 fa = gather(c->fs[3], idx);
2448 ba = gather(c->bs[3], idx);
2733 from_8888(gather(ptr, ix), r,g,b,a);
2807 from_8888(gather(ptr, ix), &sr,&sg,&sb,&sa);
2858 from_8888(gather(ptr, ix), &sr,&sg,&sb,&sa);
2977 // GP: geometry in, pixels out. -- think, a memory gather
3532 SI V gather(const T* ptr, U32 ix) {
3540 F gather(const float* ptr, U32 ix) {
3549 U32 gather(const uint32_t* ptr, U32 ix) {
3558 SI V gather(const T* ptr, U32 ix) {
3649 from_8888(gather<U32>(ptr, ix), &r, &g, &b, &a);
3695 from_565(gather<U16>(ptr, ix), &r, &g, &b);
3740 from_4444(gather<U16>(ptr, ix), &r,&g,&b,&a);
3805 from_88(gather<U16>(ptr, ix), &r, &g);
3834 a = cast<U16>(gather<U8>(ptr, ix));
4042 fr = gather<F>(c->fs[0], idx);
4043 fg = gather<F>(c->fs[1], idx);
4044 fb = gather<F>(c->fs[2], idx);
4045 fa = gather<F>(c->fs[3], idx);
4046 br = gather<F>(c->bs[0], idx);
4047 bg = gather<F>(c->bs[1], idx);
4048 bb = gather<F>(c->bs[2], idx);
4049 ba = gather<F>(c->bs[3], idx);
4146 from_8888(gather<U32>(ptr, ix), &leftR,&leftG,&leftB,&leftA);
4150 from_8888(gather<U32>(ptr, ix), &rightR,&rightG,&rightB,&rightA);
4158 from_8888(gather<U32>(ptr, ix), &leftR,&leftG,&leftB,&leftA);
4161 from_8888(gather<U32>(ptr, ix), &rightR,&rightG,&rightB,&rightA);