Lines Matching defs:shift
515 const int shift = 31 - gglClz(tmu.format.size);
541 MOV(LT, 0, width, imm(1 << shift));
542 if (shift)
543 MOV(GE, 0, width, reg_imm(width, LSL, shift));
552 // width = 1<<shift
562 MOV(GT, 0, width, imm(1 << shift));
576 MOV(LT, 0, height, imm(1 << shift));
577 if (shift)
578 MOV(GE, 0, height, reg_imm(height, LSL, shift));
586 if (shift) {
587 MOV(GT, 0, height, reg_imm(stride, LSL, shift));
773 int shift = 0;
780 shift = 16;
786 shift = 12;
793 shift = 8;
812 const uint32_t offset = (mask & tmu.format.mask(i)) ? 0 : shift;
834 ORR(AL, 0, pixel, pixel, reg_imm(pixel, LSL, shift));
849 ORR(AL, 0, pixel, pixel, reg_imm(pixel, LSL, shift));
863 ORR(AL, 0, pixel, pixel, reg_imm(pixel, LSL, shift));
876 ORR(AL, 0, pixel, pixel, reg_imm(pixel, LSL, shift));
1202 int shift = incoming.l;
1207 shift += Ni-8;
1213 if (shift) {
1214 // XXX: we should be able to avoid this shift
1215 // when shift==16 && Nt<16 && Ni<16, in which
1217 MOV(AL, 0, dest.reg, reg_imm(inReg, LSR, shift));
1219 shift = 0;
1230 if (shift && (shift != 16)) {
1231 // if shift==16, we can use 16-bits mul instructions later
1232 MOV(AL, 0, dest.reg, reg_imm(inReg, LSR, shift));
1234 shift = 0;
1245 if (shift==16) SMULBT(AL, dest.reg, t, inReg);
1277 int shift = incoming.l;
1279 shift += Ni-8;
1283 if (shift) {
1284 MOV(AL, 0, dest.reg, reg_imm(incomingNorm.reg, LSR, shift));
1315 int shift = incoming.l;
1317 shift += Ni-8;
1321 if (shift) {
1322 MOV(AL, 0, dest.reg, reg_imm(incomingNorm.reg, LSR, shift));