• Home
  • Raw
  • Download

Lines Matching refs:MA1

25 #define GMB_MULT_AP1( MP1, MA1, MP2, MA2, MX1 ) \  argument
26 PSUBW ( MX1, MA1 ) /* a1 + 1 | a1 + 1 | a1 + 1 | a1 + 1 */ ;\
27 PMULLW ( MP1, MA1 ) /* t1 = p1*a1 */ ;\
32 PSRLW ( CONST(8), MA1 ) /* t1 >> 8 ~= t1/255 */ ;\
49 #define GMB_MULT_GS( MP1, MA1, MP2, MA2 ) \ argument
50 PMULLW ( MP1, MA1 ) /* t1 = p1*a1 */ ;\
53 MOVQ ( MA1, MP1 ) ;\
54 PSRLW ( CONST(8), MA1 ) /* t1 >> 8 */ ;\
59 PADDW ( MP1, MA1 ) /* t1 + (t1 >> 8) ~= (t1/255) << 8 */ ;\
60 PSRLW ( CONST(8), MA1 ) /* sa1 | sb1 | sg1 | sr1 */ ;\
77 #define GMB_MULT_GSR( MP1, MA1, MP2, MA2, M80 ) \ argument
78 PMULLW ( MP1, MA1 ) /* t1 = p1*a1 */ ;\
79 PADDW ( M80, MA1 ) /* t1 += 0x80 */ ;\
84 MOVQ ( MA1, MP1 ) ;\
85 PSRLW ( CONST(8), MA1 ) /* t1 >> 8 */ ;\
90 PADDW ( MP1, MA1 ) /* t1 + (t1 >> 8) ~= (t1/255) << 8 */ ;\
91 PSRLW ( CONST(8), MA1 ) /* sa1 | sb1 | sg1 | sr1 */ ;\
99 #define GMB_LERP_GS( MP1, MQ1, MA1, MP2, MQ2, MA2) \ argument
102 PMULLW ( MP1, MA1 ) /* t1 = (q1 - p1)*pa1 */ ;\
108 MOVQ ( MA1, MP1 ) ;\
109 PSRLW ( CONST(8), MA1 ) /* t1 >> 8 */ ;\
114 PADDW ( MP1, MA1 ) /* t1 + (t1 >> 8) ~= (t1/255) << 8 */ ;\
117 PADDW ( MQ1, MA1 ) /* (t1/255 + q1) << 8 */ ;\
120 PSRLW ( CONST(8), MA1 ) /* sa1 | sb1 | sg1 | sr1 */ ;\
130 #define GMB_LERP_GSR( MP1, MQ1, MA1, MP2, MQ2, MA2, M80) \ argument
133 PMULLW ( MP1, MA1 ) /* t1 = (q1 - p1)*pa1 */ ;\
145 PSUBW ( MP1, MA1 ) /* t1 -=? 0x100 */ ;\
148 PADDW ( M80, MA1 ) /* t1 += 0x80 */ ;\
151 MOVQ ( MA1, MP1 ) ;\
152 PSRLW ( CONST(8), MA1 ) /* t1 >> 8 */ ;\
157 PADDW ( MP1, MA1 ) /* t1 + (t1 >> 8) ~= (t1/255) << 8 */ ;\
160 PADDW ( MQ1, MA1 ) /* (t1/255 + q1) << 8 */ ;\
163 PSRLW ( CONST(8), MA1 ) /* sa1 | sb1 | sg1 | sr1 */ ;\
175 #define GMB_LERP_GSC( MP1, MQ1, MA1, MP2, MQ2, MA2) \ argument
178 PMULLW ( MP1, MA1 ) /* t1 = (q1 - p1)*pa1 */ ;\
184 MOVQ ( MA1, MP1 ) ;\
185 PSRLW ( CONST(8), MA1 ) /* t1 >> 8 */ ;\
190 PADDW ( MA1, MP1 ) /* t1 + (t1 >> 8) ~= (t1/255) << 8 */ ;\
191 PSRLW ( CONST(7), MA1 ) /* t1 >> 15 */ ;\
196 PADDW ( MP1, MA1 ) /* t1 + (t1 >> 8) + (t1 >>15) ~= (t1/255) << 8 */ ;\
199 PADDW ( MQ1, MA1 ) /* (t1/255 + q1) << 8 */ ;\
202 PSRLW ( CONST(8), MA1 ) /* sa1 | sb1 | sg1 | sr1 */ ;\
228 #define GMB_ALPHA(MP1, MA1, MP2, MA2) \ argument
229 MOVQ ( MP1, MA1 ) ;\
232 PUNPCKHWD ( MA1, MA1 ) /* pa1 | pa1 | | */ ;\
234 … PUNPCKHDQ ( MA1, MA1 ) /* pa1 | pa1 | pa1 | pa1 */ ;\