summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryves <steve.harrison@gmx.net>2011-05-21 11:53:05 +0200
committeryves <steve.harrison@gmx.net>2011-05-21 11:53:05 +0200
commita795efc9d699c17504dfd4b829ddd64cedfdf61d (patch)
treefa90ea0161c09a888c0c196bb6fe5215a286dfbe
parent2674da763577c71a05be0145569056228b2eee29 (diff)
downloadmanycore-a795efc9d699c17504dfd4b829ddd64cedfdf61d.tar.gz
manycore-a795efc9d699c17504dfd4b829ddd64cedfdf61d.tar.bz2
manycore-a795efc9d699c17504dfd4b829ddd64cedfdf61d.zip
removed trailing whitespaces
-rw-r--r--inlineasm.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/inlineasm.h b/inlineasm.h
index af466d3..fc048ca 100644
--- a/inlineasm.h
+++ b/inlineasm.h
@@ -26,7 +26,7 @@ static uint64_t rdtsc()
"rdtsc ;"
: "=A" (rdtsc)
);
-
+
return rdtsc;
}
@@ -42,12 +42,12 @@ static uint64_t memmeasure(char* memory, uint64_t offset)
"shl $32, %%rdx ;"
"add %%rax, %%rdx ;"
"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
+ // TODO: evaluate if more cmp types (like w and l) do make sense
"cmpb $0x23, (%%rbx) ;"
"cmpb $0x42, (%%rbx,%%rcx) ;"
-
+
"rdtsc ;"
"shl $32, %%rdx ;"
"add %%rdx, %%rax ;"
@@ -55,7 +55,7 @@ static uint64_t memmeasure(char* memory, uint64_t offset)
: : "b" (memory), "c" (offset)
);
}
-
+
// this implementation only uses the lower part of the values retured by
// rdtsc to save instrucions. it is not significantly faster than the
// accurate one but it has fewer instrucions and by that is less likely
@@ -66,12 +66,12 @@ static uint64_t optmemmeasure(char* memory, uint64_t offset)
asm(
"rdtsc ;"
"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
+ // TODO: evaluate if more cmp types (like w and l) do make sense
"cmpb $0x23, (%%rbx) ;"
"cmpb $0x42, (%%rbx,%%rcx) ;"
-
+
"rdtsc ;"
"sub %%edi, %%eax ;"
: : "b" (memory), "c" (offset)