diff options
author | Robin Nehls <nehls@mi.fu-berlin.de> | 2011-05-21 16:45:08 +0200 |
---|---|---|
committer | Robin Nehls <nehls@mi.fu-berlin.de> | 2011-05-21 16:45:08 +0200 |
commit | f02ec82d1b0efbda684905a65331033d908028be (patch) | |
tree | fea93042e9547f9209eb7685d589589a060d5bc2 /inlineasm.h | |
parent | 4bb2da647b77420246684dc42beea2c6fe1c6949 (diff) | |
download | manycore-f02ec82d1b0efbda684905a65331033d908028be.tar.gz manycore-f02ec82d1b0efbda684905a65331033d908028be.tar.bz2 manycore-f02ec82d1b0efbda684905a65331033d908028be.zip |
improved cross platforminess of the code for x86
Diffstat (limited to 'inlineasm.h')
-rw-r--r-- | inlineasm.h | 7 |
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; |