Lines Matching refs:MA2
25 #define GMB_MULT_AP1( MP1, MA1, MP2, MA2, MX1 ) \ argument
29 TWO(PSUBW ( MX1, MA2 )) /* a2 + 1 | a2 + 1 | a2 + 1 | a2 + 1 */ ;\
30 TWO(PMULLW ( MP2, MA2 )) /* t2 = p2*a2 */ ;\
33 TWO(PSRLW ( CONST(8), MA2 )) /* t2 >> 8 ~= t2/255 */
49 #define GMB_MULT_GS( MP1, MA1, MP2, MA2 ) \ argument
51 TWO(PMULLW ( MP2, MA2 )) /* t2 = p2*a2 */ ;\
56 TWO(MOVQ ( MA2, MP2 )) ;\
57 TWO(PSRLW ( CONST(8), MA2 )) /* t2 >> 8 */ ;\
62 TWO(PADDW ( MP2, MA2 )) /* t2 + (t2 >> 8) ~= (t2/255) << 8 */ ;\
63 TWO(PSRLW ( CONST(8), MA2 )) /* sa2 | sb2 | sg2 | sr2 */
77 #define GMB_MULT_GSR( MP1, MA1, MP2, MA2, M80 ) \ argument
81 TWO(PMULLW ( MP2, MA2 )) /* t2 = p2*a2 */ ;\
82 TWO(PADDW ( M80, MA2 )) /* t2 += 0x80 */ ;\
87 TWO(MOVQ ( MA2, MP2 )) ;\
88 TWO(PSRLW ( CONST(8), MA2 )) /* t2 >> 8 */ ;\
93 TWO(PADDW ( MP2, MA2 )) /* t2 + (t2 >> 8) ~= (t2/255) << 8 */ ;\
94 TWO(PSRLW ( CONST(8), MA2 )) /* sa2 | sb2 | sg2 | sr2 */
99 #define GMB_LERP_GS( MP1, MQ1, MA1, MP2, MQ2, MA2) \ argument
106 TWO(PMULLW ( MP2, MA2 )) /* t2 = (q2 - p2)*pa2 */ ;\
111 TWO(MOVQ ( MA2, MP2 )) ;\
112 TWO(PSRLW ( CONST(8), MA2 )) /* t2 >> 8 */ ;\
115 TWO(PADDW ( MP2, MA2 )) /* t2 + (t2 >> 8) ~= (t2/255) << 8 */ ;\
118 TWO(PADDW ( MQ2, MA2 )) /* (t2/255 + q2) << 8 */ ;\
121 TWO(PSRLW ( CONST(8), MA2 )) /* sa2 | sb2 | sg2 | sr2 */
130 #define GMB_LERP_GSR( MP1, MQ1, MA1, MP2, MQ2, MA2, M80) \ argument
137 TWO(PMULLW ( MP2, MA2 )) /* t2 = (q2 - p2)*pa2 */ ;\
146 TWO(PSUBW ( MP2, MA2 )) /* t2 -=? 0x100 */ ;\
149 TWO(PADDW ( M80, MA2 )) /* t2 += 0x80 */ ;\
154 TWO(MOVQ ( MA2, MP2 )) ;\
155 TWO(PSRLW ( CONST(8), MA2 )) /* t2 >> 8 */ ;\
158 TWO(PADDW ( MP2, MA2 )) /* t2 + (t2 >> 8) ~= (t2/255) << 8 */ ;\
161 TWO(PADDW ( MQ2, MA2 )) /* (t2/255 + q2) << 8 */ ;\
164 TWO(PSRLW ( CONST(8), MA2 )) /* sa2 | sb2 | sg2 | sr2 */
175 #define GMB_LERP_GSC( MP1, MQ1, MA1, MP2, MQ2, MA2) \ argument
182 TWO(PMULLW ( MP2, MA2 )) /* t2 = (q2 - p2)*pa2 */ ;\
187 TWO(MOVQ ( MA2, MP2 )) ;\
188 TWO(PSRLW ( CONST(8), MA2 )) /* t2 >> 8 */ ;\
193 TWO(PADDW ( MA2, MP2 )) /* t2 + (t2 >> 8) ~= (t2/255) << 8 */ ;\
194 TWO(PSRLW ( CONST(7), MA2 )) /* t2 >> 15 */ ;\
197 TWO(PADDW ( MP2, MA2 )) /* t2 + (t2 >> 8) + (t2 >>15) ~= (t2/255) << 8 */ ;\
200 TWO(PADDW ( MQ2, MA2 )) /* (t2/255 + q2) << 8 */ ;\
203 TWO(PSRLW ( CONST(8), MA2 )) /* sa2 | sb2 | sg2 | sr2 */
228 #define GMB_ALPHA(MP1, MA1, MP2, MA2) \ argument
230 TWO(MOVQ ( MP2, MA2 )) ;\
233 TWO(PUNPCKHWD ( MA2, MA2 )) /* pa2 | pa2 | | */ ;\
235 TWO(PUNPCKHDQ ( MA2, MA2 )) /* pa2 | pa2 | pa2 | pa2 */