summaryrefslogtreecommitdiff
path: root/contrib/testzlib/rdtsc64.asm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--contrib/testzlib/rdtsc64.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/testzlib/rdtsc64.asm b/contrib/testzlib/rdtsc64.asm
new file mode 100644
index 0000000..6b78a8b
--- /dev/null
+++ b/contrib/testzlib/rdtsc64.asm
@@ -0,0 +1,18 @@
1; rdtsc64.asm
2;
3; unsigned _int64 myrdtsc();
4;
5; return the performance rdtsc value, on AMD64/Intel EM64T
6;
7; compile with :
8; ml64.exe" /Flrdtsc64 /c /Zi rdtsc64.asm
9;
10.code
11myrdtsc PROC
12 rdtsc
13 shl rdx,32
14 or rax,rdx
15 ret
16myrdtsc ENDP
17
18END