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/rand/rand_win.c | |
parent | c62b26fdc6bb176541ec56498090ff6f2ad4a885 (diff) | |
download | openssl-429cf462d06a164e803f46f1840d060a26812ba2.zip openssl-429cf462d06a164e803f46f1840d060a26812ba2.tar.gz openssl-429cf462d06a164e803f46f1840d060a26812ba2.tar.bz2 |
old MSVC versions don't have rdtsc
use _emit instead
Pointed out by Jeremy Cooper <jeremy@baymoo.org>
Diffstat (limited to 'crypto/rand/rand_win.c')
-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 a688467..7453fe5 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); |