All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] atomic add instruction
Date: Wed, 18 Jul 2001 21:32:26 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590693005853@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005852@msgid-missing>

There are compiler intrinisics for this purpose.  See the IA-64
processor-specific ABI for a description.  You have to include
<ia64intrin.h> to get the intrinsics defined.

	--david

>>>>> On Tue, 17 Jul 2001 15:09:46 -0700, "Swaminathan Sivasubramanian" <ssivasu@us.ibm.com> said:

  Swami> Hello Everyone,

  Swami> I want an atomic function that does addition of a constant to
  Swami> the value in a memory location and returns the previous value
  Swami> in that location.

  Swami>  Is there any macro/function defined in IA-64's atomic.h
  Swami> already. (will fetch-and-add solve the purpose?) or one
  Swami> should write his own function for it

  Swami> Thanking in advance, Swami



  Swami> _______________________________________________ Linux-IA64
  Swami> mailing list Linux-IA64@linuxia64.org
  Swami> http://lists.linuxia64.org/lists/listinfo/linux-ia64


      reply	other threads:[~2001-07-18 21:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-17 22:09 [Linux-ia64] atomic add instruction Swaminathan Sivasubramanian
2001-07-18 21:32 ` David Mosberger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590693005853@msgid-missing \
    --to=davidm@hpl.hp.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.