Searched refs:shift (Results 1 - 13 of 13) sorted by relevance

/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/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.cpp347 const int shift = (GGL_DITHER_BITS - (sbits-dbits)); local
348 if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift));
349 else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift));
355 int shift = sh-dbits; local
357 MOV(AL, 0, ireg, reg_imm(s.reg, LSR, shift));
365 MOV(AL, 0, d.reg, reg_imm(s.reg, LSR, shift));
367 ORR(AL, 0, d.reg, d.reg, reg_imm(s.reg, LSR, shift));
371 int shift local
[all...]
H A Dblending.cpp446 const int shift = fragment.size() - fb.size();
447 if (shift>0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift));
448 else if (shift<0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift));
464 const int shift = fragment.size() - fb.size();
465 if (shift>0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift));
466 else if (shift<0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift));
[all...]
H A Dtexturing.cpp509 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 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...]
H A DARMAssemblerInterface.h74 static uint32_t reg_imm(int Rm, int type, uint32_t shift);
83 static uint32_t reg_scale_pre(int Rm, int type=0, uint32_t shift=0, int W=0);
84 static uint32_t reg_scale_post(int Rm, int type=0, uint32_t shift=0);
/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);
H A Dscanline.cpp1043 void init(const context_t* c, int shift);
1050 void horz_clamp_iterator::init(const context_t* c, int shift) argument
1067 m_data += (tx.surface.stride*v) << shift;
/system/core/debuggerd/arm/
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/media/mca/filterpacks/imageproc/java/
H A DSaturateFilter.java47 "uniform float shift;\n" +
52 " float kv = dot(color.rgb, weights) + shift;\n" +
144 float shift = 1.0f / 255.0f;
148 mBenProgram.setHostValue("shift", shift);

Completed in 145 milliseconds