old MSVC versions don't have rdtsc
authorUlf Möller <ulf@openssl.org>
Thu, 8 Mar 2001 16:46:23 +0000 (16:46 +0000)
committerUlf Möller <ulf@openssl.org>
Thu, 8 Mar 2001 16:46:23 +0000 (16:46 +0000)
use _emit instead

Pointed out by Jeremy Cooper <jeremy@baymoo.org>

crypto/rand/rand_win.c

index a688467..7453fe5 100644 (file)
@@ -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);