[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] inlined rdtsc() function in header file
On Monday 05 March 2001 08:07, Cort Dougan wrote:
> Change
>
> __inline__ unsigned long long int rdtsc(void)
>
> to
>
> static __inline__ unsigned long long int rdtsc(void)
>
> or
>
> extern __inline__ unsigned long long int rdtsc(void)
>
> and it should work.
Yep; most compilers handle "inline" by creating a non-inlined instance of the
function as well as inlining the code where it's used. (This is to make
"inline" compatible with compilation + separate linking builds, I think.)
//David
.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david@linuxdj.com -'