1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 10:51:51 +00:00

10l correct type for =a and =d constraints under x86-32

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30757 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
zuxy 2010-02-27 12:15:02 +00:00
parent 26cab7638f
commit a7b58b6d7a

View File

@ -77,10 +77,10 @@ cpuid(int func) {
static int64_t
rdtsc(void)
{
uint64_t hi, lo;
uint32_t hi, lo;
#define RDTSC ".byte 0x0f, 0x31; "
__asm__ volatile (RDTSC : "=a"(lo), "=d"(hi) : );
return hi << 32 | lo;
return (uint64_t) hi << 32 | lo;
}
static const char*