Mercurial > hg > Game > Cerium
changeset 1345:95de5f81924d draft
exclusion of asm from Cell
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Jan 2012 16:56:14 +0900 |
parents | fbe51e90993a |
children | ef3864bb2776 |
files | TaskManager/Fifo/rdtsc.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Fifo/rdtsc.h Fri Jan 13 08:56:49 2012 +0900 +++ b/TaskManager/Fifo/rdtsc.h Mon Jan 16 16:56:14 2012 +0900 @@ -7,7 +7,9 @@ inline unsigned long long rdtsc() { unsigned long long ret; +#ifdef __CERIUM_FIFO__ __asm__ volatile ("rdtsc" : "=A" (ret)); +#endif // __CERIUM_FIFO__ return ret; }