rand_nw.c: compensate for gcc bug (using %edx instead of %eax at -O3).
PR: 2296
This commit is contained in:
parent
df72970951
commit
f04f3873f8
1 changed files with 2 additions and 2 deletions
|
@ -160,8 +160,8 @@ int RAND_poll(void)
|
|||
rdtsc
|
||||
mov tsc, eax
|
||||
}
|
||||
#else
|
||||
asm volatile("rdtsc":"=A" (tsc));
|
||||
#elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
|
||||
asm volatile("rdtsc":"=a"(tsc)::"edx");
|
||||
#endif
|
||||
|
||||
RAND_add(&tsc, sizeof(tsc), 1);
|
||||
|
|
Loading…
Reference in a new issue