summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Nehls <nehls@mi.fu-berlin.de>2011-05-21 16:45:08 +0200
committerRobin Nehls <nehls@mi.fu-berlin.de>2011-05-21 16:45:08 +0200
commitf02ec82d1b0efbda684905a65331033d908028be (patch)
treefea93042e9547f9209eb7685d589589a060d5bc2
parent4bb2da647b77420246684dc42beea2c6fe1c6949 (diff)
downloadmanycore-f02ec82d1b0efbda684905a65331033d908028be.tar.gz
manycore-f02ec82d1b0efbda684905a65331033d908028be.tar.bz2
manycore-f02ec82d1b0efbda684905a65331033d908028be.zip
improved cross platforminess of the code for x86
-rw-r--r--inlineasm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inlineasm.h b/inlineasm.h
index f9dd4bc..d1cb138 100644
--- a/inlineasm.h
+++ b/inlineasm.h
@@ -19,6 +19,13 @@ static uint32_t optmemmeasure(char* memory, uint32_t offset)
);
}
+// we did no acurate implementation on 32 bit x86
+static uint32_t memmeasure(char* memory, uint32_t offset)
+{
+ return optmemmeasure(memory, offset);
+}
+
+
static uint64_t rdtsc()
{
uint64_t rdtsc;