- "pushl %0 \n\t"
- "pushl %1 \n\t"
- "leal (%2,%2), %%eax \n\t"
- "leal (%3,%3), %%ebx \n\t"
-
-#define SIMPLE_CPY \
- "movq (%0), %%mm0 \n\t"\
- "movq (%0,%2), %%mm1 \n\t"\
- "movq %%mm0, (%1) \n\t"\
- "movq %%mm1, (%1, %3) \n\t"\
-
-SIMPLE_CPY
- "addl %%eax, %0 \n\t"
- "addl %%ebx, %1 \n\t"
-SIMPLE_CPY
- "addl %%eax, %0 \n\t"
- "addl %%ebx, %1 \n\t"
-SIMPLE_CPY
- "addl %%eax, %0 \n\t"
- "addl %%ebx, %1 \n\t"
-SIMPLE_CPY
-
- "popl %1 \n\t"
- "popl %0 \n\t"
+ "leal (%0,%2), %%eax \n\t"
+ "leal (%1,%3), %%ebx \n\t"
+
+#define SIMPLE_CPY(src1, src2, dst1, dst2) \
+ "movq " #src1 ", %%mm0 \n\t"\
+ "movq " #src2 ", %%mm1 \n\t"\
+ "movq %%mm0, " #dst1 " \n\t"\
+ "movq %%mm1, " #dst2 " \n\t"\
+
+SIMPLE_CPY((%0) , (%0, %2) , (%1) , (%1, %3))
+SIMPLE_CPY((%0, %2, 2), (%%eax, %2, 2), (%1, %3, 2), (%%ebx, %3, 2))
+SIMPLE_CPY((%0, %2, 4), (%%eax, %2, 4), (%1, %3, 4), (%%ebx, %3, 4))
+ "leal (%%eax,%2,4), %%eax \n\t"
+ "leal (%%ebx,%3,4), %%ebx \n\t"
+SIMPLE_CPY((%%eax, %2), (%%eax, %2, 2), (%%ebx, %3), (%%ebx, %3, 2))
+