/*
* initialization, load RSI, RDI, RBX registers
*/
+#ifndef _ILP32
"\tmovq %[dst], %%rdi\n"
"\tmovq %[src], %%rsi\n"
"\tmovq %[sum], %%rbx\n"
+#else
+ "\tmovl %[dst], %%edi\n"
+ "\tmovl %[src], %%esi\n"
+ "\tmovl %[sum], %%ebx\n"
+#endif
/*
* while (size-- > 0) {
/*
* while (size-- > 0)
*/
- "\tadd %[dst_step], %%rdi\n"
- "\tadd %[src_step], %%rsi\n"
- "\tadd %[sum_step], %%rbx\n"
+#ifndef _ILP32
+ "\taddq %[dst_step], %%rdi\n"
+ "\taddq %[src_step], %%rsi\n"
+ "\taddq %[sum_step], %%rbx\n"
+#else
+ "\taddl %[dst_step], %%edi\n"
+ "\taddl %[src_step], %%esi\n"
+ "\taddl %[sum_step], %%ebx\n"
+#endif
"\tdecl %[size]\n"
"\tjnz 1b\n"
/*
* initialization, load RSI, RDI, RBX registers
*/
+#ifndef _ILP32
"\tmovq %[dst], %%rdi\n"
"\tmovq %[src], %%rsi\n"
"\tmovq %[sum], %%rbx\n"
+#else
+ "\tmovl %[dst], %%edi\n"
+ "\tmovl %[src], %%esi\n"
+ "\tmovl %[sum], %%ebx\n"
+#endif
/*
* while (size-- > 0) {
/*
* while (size-- > 0)
*/
- "\tadd %[dst_step], %%rdi\n"
- "\tadd %[src_step], %%rsi\n"
- "\tadd %[sum_step], %%rbx\n"
+#ifndef _ILP32
+ "\taddq %[dst_step], %%rdi\n"
+ "\taddq %[src_step], %%rsi\n"
+ "\taddq %[sum_step], %%rbx\n"
+#else
+ "\taddl %[dst_step], %%edi\n"
+ "\taddl %[src_step], %%esi\n"
+ "\taddl %[sum_step], %%ebx\n"
+#endif
"\tdecl %[size]\n"
"\tjnz 1b\n"
/*
* initialization, load RSI, RDI, RBX registers
*/
+#ifndef _ILP32
"\tmovq %[dst], %%rdi\n"
"\tmovq %[src], %%rsi\n"
"\tmovq %[sum], %%rbx\n"
+#else
+ "\tmovl %[dst], %%edi\n"
+ "\tmovl %[src], %%esi\n"
+ "\tmovl %[sum], %%ebx\n"
+#endif
/*
* while (size-- > 0) {
/*
* while (size-- > 0)
*/
- "\tadd %[dst_step], %%rdi\n"
- "\tadd %[src_step], %%rsi\n"
- "\tadd %[sum_step], %%rbx\n"
+#ifndef _ILP32
+ "\taddq %[dst_step], %%rdi\n"
+ "\taddq %[src_step], %%rsi\n"
+ "\taddq %[sum_step], %%rbx\n"
+#else
+ "\taddl %[dst_step], %%edi\n"
+ "\taddl %[src_step], %%esi\n"
+ "\taddl %[sum_step], %%ebx\n"
+#endif
"\tdecl %[size]\n"
"\tjnz 1b\n"