diff options
author | Ulf Möller <ulf@openssl.org> | 2001-03-08 16:46:23 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2001-03-08 16:46:23 +0000 |
commit | 429cf462d06a164e803f46f1840d060a26812ba2 (patch) | |
tree | b7559309106269bd44c0c272cc34fe45a357a929 /crypto | |
parent | c62b26fdc6bb176541ec56498090ff6f2ad4a885 (diff) |
old MSVC versions don't have rdtsc
use _emit instead
Pointed out by Jeremy Cooper <jeremy@baymoo.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/rand_win.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |