/system/core/debuggerd/ |
H A D | pr-support.c | 213 int shift; local 218 shift = 2; 221 reg += ((op & 0x7f) << shift); 222 shift += 7; 225 reg += ((op & 0x7f) << shift) + 0x204;
|
/system/core/libpixelflinger/codeflinger/ |
H A D | ARMAssemblerInterface.cpp | 88 uint32_t ARMAssemblerInterface::reg_imm(int Rm, int type, uint32_t shift) argument 90 return ((shift&0x1F)<<7) | ((type&0x3)<<5) | (Rm&0xF); 124 uint32_t shift, int W) 128 reg_imm(abs(Rm), type, shift); 131 uint32_t ARMAssemblerInterface::reg_scale_post(int Rm, int type, uint32_t shift) argument 133 return (1<<25) | (((uint32_t(Rm)>>31)^1)<<23) | reg_imm(abs(Rm), type, shift); 123 reg_scale_pre(int Rm, int type, uint32_t shift, int W) argument
|
H A D | load_store.cpp | 329 const int shift = (GGL_DITHER_BITS - (sbits-dbits)); local 330 if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift)); 331 else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift)); 337 int shift = sh-dbits; local 339 MOV(AL, 0, ireg, reg_imm(s.reg, LSR, shift)); 347 MOV(AL, 0, d.reg, reg_imm(s.reg, LSR, shift)); 349 ORR(AL, 0, d.reg, d.reg, reg_imm(s.reg, LSR, shift)); 353 int shift local [all...] |
H A D | texturing.cpp | 509 const int shift = 31 - gglClz(tmu.format.size); local 532 MOV(LT, 0, width, imm(1 << shift)); 533 if (shift) 534 MOV(GE, 0, width, reg_imm(width, LSL, shift)); 543 // width = 1<<shift 553 MOV(GT, 0, width, imm(1 << shift)); 567 MOV(LT, 0, height, imm(1 << shift)); 568 if (shift) 569 MOV(GE, 0, height, reg_imm(height, LSL, shift)); 577 if (shift) { 756 int shift = 0; local 1184 int shift = incoming.l; local 1259 int shift = incoming.l; local 1297 int shift = incoming.l; local [all...] |
H A D | GGLAssembler.cpp | 566 const int shift = fragment.h <= 8 ? 0 : fragment.h-8; local 571 if (shift) { 573 reg_imm(mAlphaSource.reg, LSR, shift)); 580 if (shift) { 582 reg_imm(fragment.reg, LSR, shift)); 587 mAlphaSource.s -= shift; 700 const int shift = GGL_COLOR_BITS-fragment.size(); local 702 if (shift) CMP(AL, fragment.reg, reg_imm(ref, LSR, shift)); 902 int shift local [all...] |
/system/core/include/private/pixelflinger/ |
H A D | ggl_fixed.h | 110 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) CONST; 111 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) { argument 113 if (__builtin_constant_p(shift)) { 118 : "%[x]"(x), [y]"r"(y), [lshift] "I"(32-shift), [rshift] "I"(shift) 126 : "%[x]"(x), [y]"r"(y), [lshift] "r"(32-shift), [rshift] "r"(shift) 133 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST; 134 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) { argument 136 if (__builtin_constant_p(shift)) { 155 gglMulSubx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) argument 197 gglMulx(GGLfixed a, GGLfixed b, int shift) argument 201 gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) argument 205 gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) argument [all...] |
/system/core/libpixelflinger/ |
H A D | buffer.cpp | 322 // and shift / construct the pixel 338 const int shift = (GGL_DITHER_BITS - (sbits-dbits)); local 339 if (shift >= 0) v += (dither >> shift) << sl; 340 else v += (dither << (-shift)) << sl; 368 // so we just have to shift the component to the right location 369 int shift = dh-sh; local 370 in |= v<<shift; 375 int shift = sh-dh; local 376 if (shift > [all...] |
H A D | fixed.cpp | 54 // shift right 1-bit to make room for the sign bit 62 int shift; local 63 x = gglRecipQNormalized(x, &shift); 64 shift += 16-q; 65 x += 1L << (shift-1); // rounding 66 x >>= shift; local
|
H A D | trap.cpp | 696 const int shift = TRI_ITERATORS_BITS - TRI_FRACTION_BITS; local 701 edge->x = (x1 << shift) + (1LU << (TRI_ITERATORS_BITS-1)); 882 const int shift = FIXED_BITS - TRI_FRACTION_BITS; local 885 edge->x = x1 << shift; 1002 const int32_t shift = TRI_FRACTION_BITS + TRI_ITERATORS_BITS - FIXED_BITS; local 1006 GGLfixed l_min = gglMulAddx(left->x_incr, y - left->y_top, left->x, shift); 1013 GGLfixed r_min = gglMulAddx(right->x_incr, y - right->y_top, right->x, shift);
|