From 4bb2da647b77420246684dc42beea2c6fe1c6949 Mon Sep 17 00:00:00 2001 From: Robin Nehls Date: Sat, 21 May 2011 16:44:40 +0200 Subject: removed useless comments --- inlineasm.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/inlineasm.h b/inlineasm.h index 2779314..f9dd4bc 100644 --- a/inlineasm.h +++ b/inlineasm.h @@ -2,7 +2,6 @@ #if defined(__i386__) -//averages at about 80 ticks with an offset of 1 static uint32_t optmemmeasure(char* memory, uint32_t offset) { asm( @@ -36,7 +35,6 @@ static uint64_t rdtsc() // this implementation uses all of the data provided by rdtsc but uses // more instrucions -// averages at about 77.3 ticks with an offset of 1 static uint64_t memmeasure(char* memory, uint64_t offset) { asm( @@ -46,7 +44,6 @@ static uint64_t memmeasure(char* memory, uint64_t offset) "mov %%rdx, %%rdi ;" // here be magic dragons and memory access (read segfaults) ahead - // TODO: evaluate if more cmp types (like w and l) do make sense "movb (%%rbx), %%al ;" "xor (%%rbx,%%rcx), %%rax ;" "movb %%al, (%%rbx) ;" @@ -64,7 +61,6 @@ static uint64_t memmeasure(char* memory, uint64_t offset) // rdtsc to save instrucions. it is not significantly faster than the // accurate one but it has fewer instrucions and by that is less likely // to be delayed by the scheduler -// averages at about 72.5 ticks with an offset of 1 static uint64_t optmemmeasure(char* memory, uint64_t offset) { asm( @@ -72,7 +68,6 @@ static uint64_t optmemmeasure(char* memory, uint64_t offset) "mov %%eax, %%edi ;" // here be magic dragons and memory access (read segfaults) ahead - // TODO: evaluate if more cmp types (like w and l) do make sense "movb (%%rbx), %%al ;" "xor (%%rbx,%%rcx), %%rax ;" "movb %%al, (%%rbx) ;" -- cgit v1.2.3-1-g7c22