mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
old MSVC versions don't have rdtsc
use _emit instead Pointed out by Jeremy Cooper <jeremy@baymoo.org>
This commit is contained in:
parent
c62b26fdc6
commit
429cf462d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user