Go to the documentation of this file.
44 "movq (%3), %%mm0 \n\t"
45 "movq 8(%3), %%mm1 \n\t"
46 "movq 16(%3), %%mm2 \n\t"
47 "movq 24(%3), %%mm3 \n\t"
48 "movq 32(%3), %%mm4 \n\t"
49 "movq 40(%3), %%mm5 \n\t"
50 "movq 48(%3), %%mm6 \n\t"
51 "movq 56(%3), %%mm7 \n\t"
52 "packuswb %%mm1, %%mm0 \n\t"
53 "packuswb %%mm3, %%mm2 \n\t"
54 "packuswb %%mm5, %%mm4 \n\t"
55 "packuswb %%mm7, %%mm6 \n\t"
56 "movq %%mm0, (%0) \n\t"
57 "movq %%mm2, (%0, %1) \n\t"
58 "movq %%mm4, (%0, %1, 2) \n\t"
59 "movq %%mm6, (%0, %2) \n\t"
60 ::
"r" (pix),
"r" ((
x86_reg) line_size),
"r" ((
x86_reg) line_size * 3),
70 "movq (%3), %%mm0 \n\t"
71 "movq 8(%3), %%mm1 \n\t"
72 "movq 16(%3), %%mm2 \n\t"
73 "movq 24(%3), %%mm3 \n\t"
74 "movq 32(%3), %%mm4 \n\t"
75 "movq 40(%3), %%mm5 \n\t"
76 "movq 48(%3), %%mm6 \n\t"
77 "movq 56(%3), %%mm7 \n\t"
78 "packuswb %%mm1, %%mm0 \n\t"
79 "packuswb %%mm3, %%mm2 \n\t"
80 "packuswb %%mm5, %%mm4 \n\t"
81 "packuswb %%mm7, %%mm6 \n\t"
82 "movq %%mm0, (%0) \n\t"
83 "movq %%mm2, (%0, %1) \n\t"
84 "movq %%mm4, (%0, %1, 2) \n\t"
85 "movq %%mm6, (%0, %2) \n\t"
86 ::
"r" (pix),
"r" ((
x86_reg) line_size),
"r" ((
x86_reg) line_size * 3),
105 "movq (%2), %%mm0 \n\t"
106 "movq 8(%2), %%mm1 \n\t"
107 "movq 16(%2), %%mm2 \n\t"
108 "movq 24(%2), %%mm3 \n\t"
109 "movq %0, %%mm4 \n\t"
110 "movq %1, %%mm6 \n\t"
111 "movq %%mm4, %%mm5 \n\t"
112 "punpcklbw %%mm7, %%mm4 \n\t"
113 "punpckhbw %%mm7, %%mm5 \n\t"
114 "paddsw %%mm4, %%mm0 \n\t"
115 "paddsw %%mm5, %%mm1 \n\t"
116 "movq %%mm6, %%mm5 \n\t"
117 "punpcklbw %%mm7, %%mm6 \n\t"
118 "punpckhbw %%mm7, %%mm5 \n\t"
119 "paddsw %%mm6, %%mm2 \n\t"
120 "paddsw %%mm5, %%mm3 \n\t"
121 "packuswb %%mm1, %%mm0 \n\t"
122 "packuswb %%mm3, %%mm2 \n\t"
123 "movq %%mm0, %0 \n\t"
124 "movq %%mm2, %1 \n\t"
125 :
"+m" (*pix),
"+m" (*(pix + line_size))
128 pix += line_size * 2;