Remove a stale comment
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 10 Nov 2013 11:42:54 +0000 (12:42 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Sun, 10 Nov 2013 11:42:54 +0000 (12:42 +0100)
inline-asm-array-sum.c

index 7eb7ae8..808aa66 100644 (file)
@@ -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++ */