Re: counters that wrap around

Mitchell Blank Jr (mitch@execpc.com)
Tue, 25 Aug 1998 17:54:27 -0500


Roger Espel Llima wrote:
> Is it that unreasonable to do something like (forgive the Intel asm
> syntax..)
>
> add variable, 1
> adc variable64, 0
>
> instead of
>
> inc variable
>
> like we're (I assume) doing now?

My mistake. I assumed that using 'unsigned long long' caused gcc to play
register tango on i386, and that was what people were complaining about.
I should have checked the .s first.

Since it's so cheap, is there any real reason to replace all those
counters with u64's and add support for printing them?

-Mitch

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html