projects
/
experiments
/
inline-assembly.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56a5616
)
Remove a stale comment
author
Antonio Ospite <ospite@studenti.unina.it>
Sun, 10 Nov 2013 11:42:54 +0000
(12:42 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Sun, 10 Nov 2013 11:42:54 +0000
(12:42 +0100)
inline-asm-array-sum.c
patch
|
blob
|
history
diff --git
a/inline-asm-array-sum.c
b/inline-asm-array-sum.c
index
7eb7ae8
..
808aa66
100644
(file)
--- a/
inline-asm-array-sum.c
+++ b/
inline-asm-array-sum.c
@@
-33,7
+33,6
@@
static int array_sum(int *values, unsigned int n)
".REPEAT:\n\t"
"cmpl %%edi, %%ecx\n\t" /* if (i == n) */
"je .DONE\n\t"
".REPEAT:\n\t"
"cmpl %%edi, %%ecx\n\t" /* if (i == n) */
"je .DONE\n\t"
- /* TODO: try incrementing the pointer by 4 */
"movq (%%rbx,%%rdi,4), %%rdx\n\t" /* tmp = values[i]; 64 bit register */
"addl %%edx, %%eax\n\t" /* sum += tmp[31:0]; */
"incl %%edi\n\t" /* i++ */
"movq (%%rbx,%%rdi,4), %%rdx\n\t" /* tmp = values[i]; 64 bit register */
"addl %%edx, %%eax\n\t" /* sum += tmp[31:0]; */
"incl %%edi\n\t" /* i++ */