From: Ulf Möller Date: Thu, 8 Mar 2001 16:46:23 +0000 (+0000) Subject: old MSVC versions don't have rdtsc X-Git-Tag: OpenSSL_0_9_6a-beta2~17^2~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=429cf462d06a164e803f46f1840d060a26812ba2;p=oweals%2Fopenssl.git old MSVC versions don't have rdtsc use _emit instead Pointed out by Jeremy Cooper --- diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index a688467e02..7453fe589e 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -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);