[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Fix primitiveHighResClock (actually ioHighResClock) on x86-64. (9135361)
Tobias Pape
notifications at github.com
Sun Dec 31 12:02:16 UTC 2017
What about the more simpler
```C
unsigned a, d;
__asm__ volatile("rdtsc" : "=a" (a), "=d" (d));
value= ((unsigned long long)a) | (((unsigned long long)d) << 32);
```
which should work for both x86 and x86_64 according to https://web.archive.org/web/20161215213659/http://www.cs.wm.edu/~kearns/001lab.d/rdtsc.html ?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/91353618c46aa9e2ef5507b54517e90e4096ccad#commitcomment-26565182
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20171231/660c10bb/attachment.html>
More information about the Vm-dev
mailing list