linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* fetch_and_add() available on PPC Linux?
@ 2001-12-06  3:56 rayson_ho
  2001-12-06  4:17 ` David Edelsohn
  0 siblings, 1 reply; 7+ messages in thread
From: rayson_ho @ 2001-12-06  3:56 UTC (permalink / raw)
  To: linuxppc-dev


I am porting a threads library to PPC Linux... Since some applications depend on it, I can't easily switch to pthreads.

The library uses fetch_and_add(), which is available on AIX. I tried to compile it on PPC Linux, but failed to link.

I compiled the code on AIX with -S. Then I examined the assembly listing, and found that fetch_and_add() is a lib/OS call.

I would like to know if PPC Linux has something similar to fetch_and_add() on AIX, if not, are there any workarounds??

Thanks,
Rayson



----------------------------------------------
 Åwªï¨Ï¥ÎHongKong.com¶l¥ó¨t²Î
 Thank you for using hongkong.com Email system


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-12-06 21:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-06  3:56 fetch_and_add() available on PPC Linux? rayson_ho
2001-12-06  4:17 ` David Edelsohn
2001-12-06 13:07   ` Michael R. Zucca
2001-12-06 13:46     ` Holger Bettag
2001-12-06 14:07     ` fetch_and_add() available on PPC Linux?Hi, Kevin B. Hendricks
2001-12-06 15:00       ` Wolfgang Denk
2001-12-06 21:51         ` Kevin B. Hendricks

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 NNTP newsgroup(s).