rand_nw.c: compensate for gcc bug (using %edx instead of %eax at -O3)
[from HEAD]. PR: 2296
This commit is contained in:
parent
02a6518a02
commit
65d82478d8
@ -160,8 +160,8 @@ int RAND_poll(void)
|
|||||||
rdtsc
|
rdtsc
|
||||||
mov tsc, eax
|
mov tsc, eax
|
||||||
}
|
}
|
||||||
#else
|
#elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
|
||||||
asm volatile("rdtsc":"=A" (tsc));
|
asm volatile("rdtsc":"=a"(tsc)::"edx");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RAND_add(&tsc, sizeof(tsc), 1);
|
RAND_add(&tsc, sizeof(tsc), 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user