comparison i386/dsputil_mmx.c @ 4939:3409dc0e7797 libavcodec

cosmetics: remove duplicate transpose macro
author lorenm
date Tue, 08 May 2007 17:55:56 +0000
parents 231daf8387b1
children c1fb4544bd59
comparison
equal deleted inserted replaced
4938:ee6c1ce06470 4939:3409dc0e7797
198 198
199 #define SBUTTERFLY(a,b,t,n)\ 199 #define SBUTTERFLY(a,b,t,n)\
200 "movq " #a ", " #t " \n\t" /* abcd */\ 200 "movq " #a ", " #t " \n\t" /* abcd */\
201 "punpckl" #n " " #b ", " #a " \n\t" /* aebf */\ 201 "punpckl" #n " " #b ", " #a " \n\t" /* aebf */\
202 "punpckh" #n " " #b ", " #t " \n\t" /* cgdh */\ 202 "punpckh" #n " " #b ", " #t " \n\t" /* cgdh */\
203
204 #define TRANSPOSE4(a,b,c,d,t)\
205 SBUTTERFLY(a,b,t,wd) /* a=aebf t=cgdh */\
206 SBUTTERFLY(c,d,b,wd) /* c=imjn b=kolp */\
207 SBUTTERFLY(a,c,d,dq) /* a=aeim d=bfjn */\
208 SBUTTERFLY(t,b,c,dq) /* t=cgko c=dhlp */
203 209
204 /***********************************/ 210 /***********************************/
205 /* standard MMX */ 211 /* standard MMX */
206 212
207 #ifdef CONFIG_ENCODERS 213 #ifdef CONFIG_ENCODERS
1534 #define MMABS_SUM_MMX2(a,z, sum)\ 1540 #define MMABS_SUM_MMX2(a,z, sum)\
1535 "pxor " #z ", " #z " \n\t"\ 1541 "pxor " #z ", " #z " \n\t"\
1536 "psubw " #a ", " #z " \n\t"\ 1542 "psubw " #a ", " #z " \n\t"\
1537 "pmaxsw " #z ", " #a " \n\t"\ 1543 "pmaxsw " #z ", " #a " \n\t"\
1538 "paddusw " #a ", " #sum " \n\t" 1544 "paddusw " #a ", " #sum " \n\t"
1539
1540 #define TRANSPOSE4(a,b,c,d,t)\
1541 SBUTTERFLY(a,b,t,wd) /* a=aebf t=cgdh */\
1542 SBUTTERFLY(c,d,b,wd) /* c=imjn b=kolp */\
1543 SBUTTERFLY(a,c,d,dq) /* a=aeim d=bfjn */\
1544 SBUTTERFLY(t,b,c,dq) /* t=cgko c=dhlp */
1545 1545
1546 #define LOAD4(o, a, b, c, d)\ 1546 #define LOAD4(o, a, b, c, d)\
1547 "movq "#o"(%1), " #a " \n\t"\ 1547 "movq "#o"(%1), " #a " \n\t"\
1548 "movq "#o"+16(%1), " #b " \n\t"\ 1548 "movq "#o"+16(%1), " #b " \n\t"\
1549 "movq "#o"+32(%1), " #c " \n\t"\ 1549 "movq "#o"+32(%1), " #c " \n\t"\