Searched defs:shift (Results 1 - 9 of 9) sorted by relevance

/system/core/debuggerd/
H A Dpr-support.c213 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 DARMAssemblerInterface.cpp88 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 Dload_store.cpp329 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 Dtexturing.cpp506 const int shift = 31 - gglClz(tmu.format.size); local
529 MOV(LT, 0, width, imm(1 << shift));
530 if (shift)
531 MOV(GE, 0, width, reg_imm(width, LSL, shift));
540 // width = 1<<shift
550 MOV(GT, 0, width, imm(1 << shift));
564 MOV(LT, 0, height, imm(1 << shift));
565 if (shift)
566 MOV(GE, 0, height, reg_imm(height, LSL, shift));
574 if (shift) {
753 int shift = 0; local
1080 int shift = incoming.l; local
1155 int shift = incoming.l; local
1193 int shift = incoming.l; local
[all...]
H A DGGLAssembler.cpp566 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 Dggl_fixed.h110 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 Dbuffer.cpp322 // 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 Dfixed.cpp54 // 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 Dtrap.cpp696 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);

Completed in 135 milliseconds