replace rdtsc as in HEAD
This commit is contained in:
parent
3e0d891828
commit
9c3cbe5d7f
@ -577,7 +577,8 @@ static void readtimer(void)
|
|||||||
if (have_tsc) {
|
if (have_tsc) {
|
||||||
__try {
|
__try {
|
||||||
__asm {
|
__asm {
|
||||||
rdtsc
|
_emit 0x0f
|
||||||
|
_emix 0x31
|
||||||
mov cyclecount, eax
|
mov cyclecount, eax
|
||||||
}
|
}
|
||||||
RAND_add(&cyclecount, sizeof(cyclecount), 1);
|
RAND_add(&cyclecount, sizeof(cyclecount), 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user