public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* can __exchange_and_add be used from outside?
@ 2007-03-27 13:12 Juan Carlos Franzoy
  2007-03-27 14:02 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Carlos Franzoy @ 2007-03-27 13:12 UTC (permalink / raw)
  To: gcc-help

Hello. I write because I was wondering if __exchange_and_add can be used from user code or it's an internal detail of libstdc++.

I have to implement a library with AtomicSet and AtomicAdd. The library must be portable across solaris/sparc, linux/x86 and hpux11/parisc.

If the answer is no, do anybody know how to do it?

Thanks.
 
------------------------------------------------------------
                      Juan Carlos Franzoy
Proyect Leader
mailto:jfranzoy@yahoo.com.ar
------------------------------------------------------------




	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: can __exchange_and_add be used from outside?
  2007-03-27 13:12 can __exchange_and_add be used from outside? Juan Carlos Franzoy
@ 2007-03-27 14:02 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2007-03-27 14:02 UTC (permalink / raw)
  To: Juan Carlos Franzoy; +Cc: gcc-help

Juan Carlos Franzoy <jfranzoy@yahoo.com.ar> writes:

> Hello. I write because I was wondering if __exchange_and_add can be used from user code or it's an internal detail of libstdc++.
> 
> I have to implement a library with AtomicSet and AtomicAdd. The library must be portable across solaris/sparc, linux/x86 and hpux11/parisc.
> 
> If the answer is no, do anybody know how to do it?

gcc provides these calls as extensions:
    http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-27 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-27 13:12 can __exchange_and_add be used from outside? Juan Carlos Franzoy
2007-03-27 14:02 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).