Searched defs:shift (Results 1 - 12 of 12) sorted by last modified time

/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
293 gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) argument
365 gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) argument
463 gglMulx(GGLfixed a, GGLfixed b, int shift) argument
467 gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) argument
471 gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) argument
[all...]
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c370 uint32_t shift = 0; local
376 value |= (op2 & 0x7f) << shift;
377 shift += 7;
/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 if (shift > 0)
66 x += 1L << (shift-1); // rounding
67 x >>= shift; local
H A Dscanline.cpp1064 void init(const context_t* c, int shift);
1071 void horz_clamp_iterator::init(const context_t* c, int shift) argument
1088 m_data += (tx.surface.stride*v) << shift;
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);
/system/core/libpixelflinger/codeflinger/
H A DARMAssembler.cpp510 uint32_t ARMAssembler::reg_imm(int Rm, int type, uint32_t shift) argument
512 return ((shift&0x1F)<<7) | ((type&0x3)<<5) | (Rm&0xF);
546 uint32_t shift, int W)
550 reg_imm(abs(Rm), type, shift);
553 uint32_t ARMAssembler::reg_scale_post(int Rm, int type, uint32_t shift) argument
555 return (1<<25) | (((uint32_t(Rm)>>31)^1)<<23) | reg_imm(abs(Rm), type, shift);
545 reg_scale_pre(int Rm, int type, uint32_t shift, int W) argument
H A DARMAssemblerProxy.cpp93 uint32_t ARMAssemblerProxy::reg_imm(int Rm, int type, uint32_t shift) argument
95 return mTarget->reg_imm(Rm, type, shift);
122 uint32_t ARMAssemblerProxy::reg_scale_pre(int Rm, int type, uint32_t shift, int W) argument
124 return mTarget->reg_scale_pre(Rm, type, shift, W);
127 uint32_t ARMAssemblerProxy::reg_scale_post(int Rm, int type, uint32_t shift) argument
129 return mTarget->reg_scale_post(Rm, type, shift);
H A DGGLAssembler.cpp569 const int shift = fragment.h <= 8 ? 0 : fragment.h-8; local
574 if (shift) {
576 reg_imm(mAlphaSource.reg, LSR, shift));
583 if (shift) {
585 reg_imm(fragment.reg, LSR, shift));
590 mAlphaSource.s -= shift;
703 const int shift = GGL_COLOR_BITS-fragment.size(); local
705 if (shift) CMP(AL, fragment.reg, reg_imm(ref, LSR, shift));
914 int shift local
[all...]
H A DMIPSAssembler.cpp234 uint32_t ArmToMipsAssembler::reg_imm(int Rm, int type, uint32_t shift) argument
238 amode.value = shift;
278 uint32_t shift, int W)
280 LOG_ALWAYS_FATAL_IF(W | type | shift, "reg_scale_pre adv modes not yet implemented");
284 // amode.value = shift;
289 uint32_t ArmToMipsAssembler::reg_scale_post(int Rm, int type, uint32_t shift) argument
277 reg_scale_pre(int Rm, int type, uint32_t shift, int W) argument
H A Dload_store.cpp351 const int shift = (GGL_DITHER_BITS - (sbits-dbits)); local
352 if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift));
353 else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift));
359 int shift = sh-dbits; local
361 MOV(AL, 0, ireg, reg_imm(s.reg, LSR, shift));
369 MOV(AL, 0, d.reg, reg_imm(s.reg, LSR, shift));
371 ORR(AL, 0, d.reg, d.reg, reg_imm(s.reg, LSR, shift));
375 int shift local
[all...]
H A Dtexturing.cpp515 const int shift = 31 - gglClz(tmu.format.size); local
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) {
773 int shift = 0; local
1202 int shift = incoming.l; local
1277 int shift = incoming.l; local
1315 int shift = incoming.l; local
[all...]

Completed in 110 milliseconds