Lines Matching defs:shift
229 int shift = shifts[channel][i];
232 shift = -shift;
235 if(shift > 0)
236 tmp = LLVMBuildLShr(builder, a, lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), "");
237 if(shift < 0)
238 tmp = LLVMBuildShl(builder, a, lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), "");
360 int shift;
385 * Mask and shift the channels, trying to group as many channels in the
386 * same shift as possible
388 for (shift = -3; shift <= 3; ++shift) {
396 chan - swizzles[chan] == shift) {
406 debug_printf("shift = %i, mask = 0x%08llx\n", shift, mask);
410 if (shift > 0) {
412 lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), "");
413 } else if (shift < 0) {
415 lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), "");