jabbin.spec
Paweł Sikora
pluto w agmk.net
Pią, 20 Kwi 2007, 22:07:51 CEST
On Friday 20 of April 2007 20:05:17 Daniel Dominik Rudnicki wrote:
> z stun.cpp
> 680: #else
> 681: #error Need some way to seed the random number generator
> 682: #endif
>
> czyzby trzeba toto jakos spaczowac ?
--- stun.cpp.orig 2006-08-10 06:09:58.000000000 -0400
+++ stun.cpp 2007-04-20 16:04:48.000000000 -0400
@@ -669,8 +669,11 @@
tick = hightick;
tick <<= 32;
tick |= lowtick;
-#elif defined(__GNUC__) && ( defined(__i686__) || defined(__i386__) )
- asm("rdtsc" : "=A" (tick));
+#elif defined(__GNUC__) && ( defined(__i686__) || defined(__i386__) ) ||
defined(__x86_64__)
+ unsigned int lowtick=0,hightick=0;
+ /* We cannot use "=A", since this would use %rax on x86_64 */
+ asm("rdtsc" : "=a" (lowtick), "=d" (hightick));
+ tick = (UInt64)hightick << 32 | lowtick;
#elif defined (__SUNPRO_CC) || defined( __sparc__ )
tick = gethrtime();
#elif defined(__MACH__)
Więcej informacji o liście dyskusyjnej pld-devel-pl