提交 f04f3873 编写于 作者: A Andy Polyakov

rand_nw.c: compensate for gcc bug (using %edx instead of %eax at -O3).

PR: 2296
上级 df729709
...@@ -160,8 +160,8 @@ int RAND_poll(void) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册