From 429cf462d06a164e803f46f1840d060a26812ba2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulf=20M=C3=B6ller?= Date: Thu, 8 Mar 2001 16:46:23 +0000 Subject: [PATCH] old MSVC versions don't have rdtsc use _emit instead Pointed out by Jeremy Cooper --- crypto/rand/rand_win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.25.1