Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 127026 | Differences between
and this patch

Collapse All | Expand All

(-)linden/indra/llcommon/llfasttimer.cpp (-9 / +2 lines)
Lines 90-110 Link Here
90
#endif // LL_WINDOWS
90
#endif // LL_WINDOWS
91
91
92
92
93
#if LL_LINUX
93
#if LL_LINUX && (defined(__i386__) || defined(__amd64__))
94
U64 get_cpu_clock_count()
94
U64 get_cpu_clock_count()
95
{
95
{
96
	U64 x;
96
	U64 x;
97
	__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
97
	__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
98
	return x;
98
	return x;
99
}
99
}
100
#endif
100
#else
101
102
#if LL_DARWIN
103
//
104
// Mac implementation of CPU clock
105
//
106
// Just use gettimeofday implementation for now
107
108
U64 get_cpu_clock_count()
101
U64 get_cpu_clock_count()
109
{
102
{
110
	return get_clock_count();
103
	return get_clock_count();

Return to bug 127026