Mercurial > hg > Game > Cerium
view TaskManager/Fifo/rdtsc.h @ 1553:21ddbc06dcde draft
fix GpuScheduler
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 17 Feb 2013 19:42:36 +0900 |
parents | 411401d1cb71 |
children | 7673e2ad2623 |
line wrap: on
line source
#ifndef RDTSC_H_ #define RDTSC_H_ /* * rdtsc is Read Time Stamp Counter */ inline unsigned long long rdtsc() { unsigned long long ret = 0; #ifdef __CERIUM_FIFO__ // ?? __asm__ volatile ("rdtsc" : "=A" (ret)); #endif // __CERIUM_FIFO__ return ret; } #endif /* RDTSC_H_ */