tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zero runtime when negative



On Jun 26, 2012, at 9:50 AM, Dennis Ferguson wrote:

> The latter is a problem since many machines have no such counter
> in hardware, and for those that do the unlikely-to-roll hardware counter is
> often 64 bits wide and is a problem to sample with a 32 bit instruction set.

Really?  This hasn't been a problem on PowerPC with its 64-bit timebase.

the algorithm is simple

read upper
read lower
read upper again
compare upper values, if they differ do the again.




Home | Main Index | Thread Index | Old Index