From 0051f6bc6d421b8f973d801189b9495c311a647b Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Thu, 15 Oct 2009 02:31:50 +0000 Subject: forgot to shift timing values by 8 bits on mac fixed fast timer values being multiplied by 256 --- indra/llcommon/llfasttimer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llfasttimer.h b/indra/llcommon/llfasttimer.h index b900be925b..576e45d2ae 100644 --- a/indra/llcommon/llfasttimer.h +++ b/indra/llcommon/llfasttimer.h @@ -79,14 +79,14 @@ inline U32 get_cpu_clock_count_32() { U64 x; __asm__ volatile (".byte 0x0f, 0x31": "=A"(x)); - return (U32)x; + return (U32)x >> 8; } inline U32 get_cpu_clock_count_64() { U64 x; __asm__ volatile (".byte 0x0f, 0x31": "=A"(x)); - return x; + return x >> 8; } #endif -- cgit v1.2.3