diff options
author | Robin Nehls <nehls@mi.fu-berlin.de> | 2011-05-21 16:44:40 +0200 |
---|---|---|
committer | Robin Nehls <nehls@mi.fu-berlin.de> | 2011-05-21 16:44:40 +0200 |
commit | 4bb2da647b77420246684dc42beea2c6fe1c6949 (patch) | |
tree | 0d5ab5afcb973816330b9b31d6e04b5a075622d2 | |
parent | 7b5013604d4ea4c865aff053b87a54d6cd970700 (diff) | |
download | manycore-4bb2da647b77420246684dc42beea2c6fe1c6949.tar.gz manycore-4bb2da647b77420246684dc42beea2c6fe1c6949.tar.bz2 manycore-4bb2da647b77420246684dc42beea2c6fe1c6949.zip |
removed useless comments
-rw-r--r-- | inlineasm.h | 5 |
1 files changed, 0 insertions, 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) ;" |