* Bruce Evans <[EMAIL PROTECTED]> [010116 19:03] wrote:
> On Tue, 16 Jan 2001, Julian Elischer wrote:
> > Bruce Evans wrote:
> > > I bother with 64-bit longs whether I need to or not :-).  They get used on
> > > i386's mainly in old code and interfaces that don't use typedefs.
> > > Hopefully 64-bit scalars will never need to be accessed atomically.
> > 
> > Too late.
> > 
> > Many statistics in interfaces (i.e. bytes transmitted) are already 64 bit
> > words.
> These don't use atomic operations (hint: no 64-bit atomic operations are
> implemented on i386's).  If they need to be atomic, then they must use
> locks.

Just wondering, can't you use 'LOCK addl' and then use 'LOCK addc'?
add longword, add longword with carry?  I know it would be pretty
ugly, but it should work, no?

"I have the heart of a child; I keep it in a jar on my desk."

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to