Annotation of /trunk/ffmpeg/patches/ffmpeg-20060904-gcc41.patch
Parent Directory | Revision Log
Revision 144 -
(hide annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1667 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1667 byte(s)
-import
1 | niro | 144 | --- ffmpeg.orig/libavcodec/i386/dsputil_mmx.c 2006-03-04 07:50:27.000000000 +0100 |
2 | +++ ffmpeg/libavcodec/i386/dsputil_mmx.c 2006-03-04 07:49:04.000000000 +0100 | ||
3 | @@ -619,10 +619,22 @@ | ||
4 | |||
5 | static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int src_stride){ | ||
6 | asm volatile( //FIXME could save 1 instruction if done as 8x4 ... | ||
7 | - "movd %4, %%mm0 \n\t" | ||
8 | - "movd %5, %%mm1 \n\t" | ||
9 | - "movd %6, %%mm2 \n\t" | ||
10 | - "movd %7, %%mm3 \n\t" | ||
11 | + "movd %0, %%mm0 \n\t" | ||
12 | + "movd %1, %%mm1 \n\t" | ||
13 | + "movd %2, %%mm2 \n\t" | ||
14 | + | ||
15 | + : | ||
16 | + : "m" (*(uint32_t*)(src + 0*src_stride)), | ||
17 | + "m" (*(uint32_t*)(src + 1*src_stride)), | ||
18 | + "m" (*(uint32_t*)(src + 2*src_stride)) | ||
19 | + ); | ||
20 | + asm volatile( //FIXME could save 1 instruction if done as 8x4 ... | ||
21 | + "movd %0, %%mm3 \n\t" | ||
22 | + | ||
23 | + : | ||
24 | + : "m" (*(uint32_t*)(src + 3*src_stride)) | ||
25 | + ); | ||
26 | + asm volatile( //FIXME could save 1 instruction if done as 8x4 ... | ||
27 | "punpcklbw %%mm1, %%mm0 \n\t" | ||
28 | "punpcklbw %%mm3, %%mm2 \n\t" | ||
29 | "movq %%mm0, %%mm1 \n\t" | ||
30 | @@ -639,10 +651,6 @@ | ||
31 | "=m" (*(uint32_t*)(dst + 1*dst_stride)), | ||
32 | "=m" (*(uint32_t*)(dst + 2*dst_stride)), | ||
33 | "=m" (*(uint32_t*)(dst + 3*dst_stride)) | ||
34 | - : "m" (*(uint32_t*)(src + 0*src_stride)), | ||
35 | - "m" (*(uint32_t*)(src + 1*src_stride)), | ||
36 | - "m" (*(uint32_t*)(src + 2*src_stride)), | ||
37 | - "m" (*(uint32_t*)(src + 3*src_stride)) | ||
38 | ); | ||
39 | } | ||
40 |