提交 429cf462 编写于 作者: U Ulf Möller

old MSVC versions don't have rdtsc

use _emit instead

Pointed out by Jeremy Cooper <jeremy@baymoo.org>
上级 c62b26fd
......@@ -582,7 +582,8 @@ static void readtimer(void)
if (have_tsc) {
__try {
__asm {
rdtsc
_emit 0x0f
_emix 0x31
mov cyclecount, eax
}
RAND_add(&cyclecount, sizeof(cyclecount), 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册