Branch: Tag:

2010-10-30

2010-10-30 18:27:19 by Martin Stjernholm <mast@lysator.liu.se>

Fixed rdtsc for msvc.

5530:   static long long rdtsc()   {    unsigned long l, h; + #if defined (_M_IX86) || defined (_M_X64) +  __asm { +  rdtsc +  mov l, eax +  mov h, edx +  } + #else    __asm__ __volatile__ ("rdtsc" :"=a" (l), "=d" (h)); -  + #endif    return (((long long)h)<<32)|l;   }