Re: [Linux-ia64] Performance Monitor Internals:

From: Pete Wyckoff <pw_at_osc.edu>
Date: 2000-11-14 03:57:17
davidm@hpl.hp.com said:
> static __inline__ unsigned long
> ia64_get_itc (void)
> {
> 	unsigned long result;
> 
> 	__asm__ __volatile__("mov %0=ar.itc" : "=r"(result) :: "memory");
> 	while (__builtin_expect ((int) result == -1, 0))
> 		__asm__ __volatile__("mov %0=ar.itc" : "=r"(result) :: "memory");
> 	return result;
> }

Why is it no good to return result when it satisfies:

    (result & 0xffffffff) == 0xffffffff

?  Curiosity.

		-- Pete
Received on Mon Nov 13 08:59:13 2000

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:00 EST