projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c62b26f
)
old MSVC versions don't have rdtsc
author
Ulf Möller
<ulf@openssl.org>
Thu, 8 Mar 2001 16:46:23 +0000
(16:46 +0000)
committer
Ulf 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
patch
|
blob
|
history
diff --git
a/crypto/rand/rand_win.c
b/crypto/rand/rand_win.c
index a688467e022e8b55a366aae996a3cf58624aeb94..7453fe589ea02b87718a06899925ba123e0ba314 100644
(file)
--- 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);