Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2000 02:56:26 -0800
From:      Julian Elischer <julian@elischer.org>
To:        smp@freebsd.org
Subject:   atomic increment?
Message-ID:  <3A39F8DA.FD4CA0A5@elischer.org>

next in thread | raw e-mail | index | archive | help
CAn we have an atomic increment and decrement primative?

presently we get:

.L565:
        movl $1,%eax
#APP
        lock
        addl %eax,4(%ebx)


the movl is totally useless and it would be 
an absolutly trivial addition..
the question is;
is there a religious reason we don't already have it?
-- 
      __--_|\  Julian Elischer
     /       \ julian@elischer.org
    (   OZ    ) World tour 2000
---> X_.---._/  presently in:  Budapest
            v


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A39F8DA.FD4CA0A5>