lkml.org 
[lkml]   [1998]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 498+ days uptime


On Tue, 25 Aug 1998, Jamie Lokier wrote:

> Incrementing a 64-bit value on i386 is fast and simple. It's arithmetic
> done in GCC, especially with temporaries that you have to worry about.
>
> The instruction sequence is:
>
> incl counter
> adcl $0,counter+4

Wrong, inc[bwl] and dec[bwl] don't affect the carry flag. You have to use
addl $1,counter (it's only 1 byte longer so nobody really cares).

Gabriel.


-
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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.054 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site