Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 21 of 21) sorted by relevance

/system/core/include/private/pixelflinger/
Dggl_fixed.h110 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) CONST;
111 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) { in gglMulx() argument
113 if (__builtin_constant_p(shift)) { in gglMulx()
118 : "%[x]"(x), [y]"r"(y), [lshift] "I"(32-shift), [rshift] "I"(shift) in gglMulx()
126 : "%[x]"(x), [y]"r"(y), [lshift] "r"(32-shift), [rshift] "r"(shift) in gglMulx()
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) { in gglMulAddx() argument
136 if (__builtin_constant_p(shift)) { in gglMulAddx()
141 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "I"(32-shift), [rshift] "I"(shift) in gglMulAddx()
148 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "r"(32-shift), [rshift] "r"(shift) in gglMulAddx()
[all …]
/system/core/libpixelflinger/arch-mips/
Dt32cb16blend.S36 .macro pixel dreg src fb shift argument
52 ext $t8,\dreg,\shift+6+5,5 # dst[\shift:15..11]
54 ext $t0,\dreg,\shift+5,6 # start green extraction dst[\shift:10..5]
58 ins \fb,$t8,\shift+6+5,5 # dst[\shift:15..11]
62 ext $t0,\dreg,\shift,5 # start blue extraction dst[\shift:4..0]
69 ins \fb,$t8,\shift+5,6 # finish green insertion dst[\shift:10..5]
73 ins \fb,$t8,\shift,5
87 .macro pixel dreg src fb shift argument
112 srl $t8,\dreg,\shift+6+5
113 .if \shift==0
[all …]
/system/core/libpixelflinger/codeflinger/
Dload_store.cpp351 const int shift = (GGL_DITHER_BITS - (sbits-dbits)); in downshift() local
352 if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift)); in downshift()
353 else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift)); in downshift()
359 int shift = sh-dbits; in downshift() local
361 MOV(AL, 0, ireg, reg_imm(s.reg, LSR, shift)); in downshift()
369 MOV(AL, 0, d.reg, reg_imm(s.reg, LSR, shift)); in downshift()
371 ORR(AL, 0, d.reg, d.reg, reg_imm(s.reg, LSR, shift)); in downshift()
375 int shift = sh-dh; in downshift() local
376 if (shift>0) { in downshift()
378 MOV(AL, 0, d.reg, reg_imm(s.reg, LSR, shift)); in downshift()
[all …]
Dtexturing.cpp515 const int shift = 31 - gglClz(tmu.format.size); in build_textures() local
541 MOV(LT, 0, width, imm(1 << shift)); in build_textures()
542 if (shift) in build_textures()
543 MOV(GE, 0, width, reg_imm(width, LSL, shift)); in build_textures()
562 MOV(GT, 0, width, imm(1 << shift)); in build_textures()
576 MOV(LT, 0, height, imm(1 << shift)); in build_textures()
577 if (shift) in build_textures()
578 MOV(GE, 0, height, reg_imm(height, LSL, shift)); in build_textures()
586 if (shift) { in build_textures()
587 MOV(GT, 0, height, reg_imm(stride, LSL, shift)); in build_textures()
[all …]
Dblending.cpp446 const int shift = fragment.size() - fb.size(); in build_blendFOneMinusF() local
447 if (shift>0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendFOneMinusF()
448 else if (shift<0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendFOneMinusF()
464 const int shift = fragment.size() - fb.size(); in build_blendOneMinusFF() local
465 if (shift>0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendOneMinusFF()
466 else if (shift<0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendOneMinusFF()
639 const int shift = src.size() - dst.size(); in component_add() local
640 if (!shift) { in component_add()
643 ADD(AL, 0, d.reg, src.reg, reg_imm(dst.reg, LSL, shift)); in component_add()
650 d.l = shift; in component_add()
DARMAssemblerProxy.cpp93 uint32_t ARMAssemblerProxy::reg_imm(int Rm, int type, uint32_t shift) in reg_imm() argument
95 return mTarget->reg_imm(Rm, type, shift); in reg_imm()
122 uint32_t ARMAssemblerProxy::reg_scale_pre(int Rm, int type, uint32_t shift, int W) in reg_scale_pre() argument
124 return mTarget->reg_scale_pre(Rm, type, shift, W); in reg_scale_pre()
127 uint32_t ARMAssemblerProxy::reg_scale_post(int Rm, int type, uint32_t shift) in reg_scale_post() argument
129 return mTarget->reg_scale_post(Rm, type, shift); in reg_scale_post()
DARMAssemblerProxy.h59 virtual uint32_t reg_imm(int Rm, int type, uint32_t shift);
68 virtual uint32_t reg_scale_pre(int Rm, int type=0, uint32_t shift=0, int W=0);
69 virtual uint32_t reg_scale_post(int Rm, int type=0, uint32_t shift=0);
DARMAssembler.h70 virtual uint32_t reg_imm(int Rm, int type, uint32_t shift);
79 virtual uint32_t reg_scale_pre(int Rm, int type=0, uint32_t shift=0, int W=0);
80 virtual uint32_t reg_scale_post(int Rm, int type=0, uint32_t shift=0);
DGGLAssembler.cpp569 const int shift = fragment.h <= 8 ? 0 : fragment.h-8; in build_incoming_component() local
574 if (shift) { in build_incoming_component()
576 reg_imm(mAlphaSource.reg, LSR, shift)); in build_incoming_component()
583 if (shift) { in build_incoming_component()
585 reg_imm(fragment.reg, LSR, shift)); in build_incoming_component()
590 mAlphaSource.s -= shift; in build_incoming_component()
703 const int shift = GGL_COLOR_BITS-fragment.size(); in build_alpha_test() local
705 if (shift) CMP(AL, fragment.reg, reg_imm(ref, LSR, shift)); in build_alpha_test()
914 int shift = rot + bitpos; in build_and_immediate() local
918 int32_t newMask = (m<<shift) | (m>>(32-shift)); in build_and_immediate()
DARMAssembler.cpp510 uint32_t ARMAssembler::reg_imm(int Rm, int type, uint32_t shift) in reg_imm() argument
512 return ((shift&0x1F)<<7) | ((type&0x3)<<5) | (Rm&0xF); in reg_imm()
546 uint32_t shift, int W) in reg_scale_pre() argument
550 reg_imm(abs(Rm), type, shift); in reg_scale_pre()
553 uint32_t ARMAssembler::reg_scale_post(int Rm, int type, uint32_t shift) in reg_scale_post() argument
555 return (1<<25) | (((uint32_t(Rm)>>31)^1)<<23) | reg_imm(abs(Rm), type, shift); in reg_scale_post()
DARMAssemblerInterface.h81 virtual uint32_t reg_imm(int Rm, int type, uint32_t shift) = 0;
90 virtual uint32_t reg_scale_pre(int Rm, int type=0, uint32_t shift=0, int W=0) = 0;
91 virtual uint32_t reg_scale_post(int Rm, int type=0, uint32_t shift=0) = 0;
DMIPSAssembler.h68 virtual uint32_t reg_imm(int Rm, int type, uint32_t shift);
77 virtual uint32_t reg_scale_pre(int Rm, int type=0, uint32_t shift=0, int W=0);
78 virtual uint32_t reg_scale_post(int Rm, int type=0, uint32_t shift=0);
DMIPSAssembler.cpp234 uint32_t ArmToMipsAssembler::reg_imm(int Rm, int type, uint32_t shift) in reg_imm() argument
238 amode.value = shift; in reg_imm()
278 uint32_t shift, int W) in reg_scale_pre() argument
280 LOG_ALWAYS_FATAL_IF(W | type | shift, "reg_scale_pre adv modes not yet implemented"); in reg_scale_pre()
289 uint32_t ArmToMipsAssembler::reg_scale_post(int Rm, int type, uint32_t shift) in reg_scale_post() argument
/system/core/libpixelflinger/
Dbuffer.cpp338 const int shift = (GGL_DITHER_BITS - (sbits-dbits)); in downshift_component() local
339 if (shift >= 0) v += (dither >> shift) << sl; in downshift_component()
340 else v += (dither << (-shift)) << sl; in downshift_component()
369 int shift = dh-sh; in downshift_component() local
370 in |= v<<shift; in downshift_component()
375 int shift = sh-dh; in downshift_component() local
376 if (shift > 0) in |= v>>shift; in downshift_component()
377 else if (shift < 0) in |= v<<shift; in downshift_component()
Dfixed.cpp62 int shift; in gglRecipQ() local
63 x = gglRecipQNormalized(x, &shift); in gglRecipQ()
64 shift += 16-q; in gglRecipQ()
65 if (shift > 0) in gglRecipQ()
66 x += 1L << (shift-1); // rounding in gglRecipQ()
67 x >>= shift; in gglRecipQ()
Dtrap.cpp696 const int shift = TRI_ITERATORS_BITS - TRI_FRACTION_BITS; in edge_setup() local
701 edge->x = (x1 << shift) + (1LU << (TRI_ITERATORS_BITS-1)); in edge_setup()
882 const int shift = FIXED_BITS - TRI_FRACTION_BITS; in aa_edge_setup() local
885 edge->x = x1 << shift; in aa_edge_setup()
1002 const int32_t shift = TRI_FRACTION_BITS + TRI_ITERATORS_BITS - FIXED_BITS; in aapolyx() local
1006 GGLfixed l_min = gglMulAddx(left->x_incr, y - left->y_top, left->x, shift); in aapolyx()
1013 GGLfixed r_min = gglMulAddx(right->x_incr, y - right->y_top, right->x, shift); in aapolyx()
Dscanline.cpp1064 void init(const context_t* c, int shift);
1071 void horz_clamp_iterator::init(const context_t* c, int shift) in init() argument
1088 m_data += (tx.surface.stride*v) << shift; in init()
/system/core/sh/funcs/
Ddirs51 shift 1
66 shift
Dpushd51 shift 1
66 shift
Dpopd51 shift 1
66 shift
/system/core/libcorkscrew/arch-arm/
Dbacktrace-arm.c370 uint32_t shift = 0; in execute_personality_routine() local
376 value |= (op2 & 0x7f) << shift; in execute_personality_routine()
377 shift += 7; in execute_personality_routine()