public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* __sync_fetch
@ 2012-11-17  6:34 Hei Chan
  2012-11-18  7:04 ` __sync_fetch Hei Chan
  2012-11-18  8:04 ` __sync_fetch Ian Lance Taylor
  0 siblings, 2 replies; 12+ messages in thread
From: Hei Chan @ 2012-11-17  6:34 UTC (permalink / raw)
  To: gcc-help



Hi,

I am using GCC 4.1.2, and so no __atomic*().

I am looking at http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html

I see __sync_fetch_and_*(), but I don't see __sync_fetch().  Is it because the built-in routines support integral scalar or pointer type that is up to 8 bytes in length, and so the read is automatically atomic anyway?

Thanks in advance.


Cheers,
Hei

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

end of thread, other threads:[~2012-11-19  6:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-17  6:34 __sync_fetch Hei Chan
2012-11-18  7:04 ` __sync_fetch Hei Chan
2012-11-18  8:07   ` __sync_fetch Ian Lance Taylor
2012-11-18  8:11     ` __sync_fetch Hei Chan
2012-11-18  8:18       ` __sync_fetch Ian Lance Taylor
2012-11-18 19:31         ` __sync_fetch Hei Chan
2012-11-19  2:57           ` __sync_fetch Ian Lance Taylor
     [not found]             ` <1353294140.73855.YahooMailNeo@web165005.mail.bf1.yahoo.com>
     [not found]               ` <CAKOQZ8y2-uP_jQMd+xCtT4Svm121HiJSdz+FGvAW-NSXxM9F+g@mail.gmail.com>
     [not found]                 ` <1353301408.14218.YahooMailNeo@web165002.mail.bf1.yahoo.com>
     [not found]                   ` <CAKOQZ8xgf7TTyU_X1oHzVRawYiKT5JK5JHiq__VtB_WUkdKAQQ@mail.gmail.com>
2012-11-19  5:39                     ` __sync_fetch Hei Chan
2012-11-19  5:46                       ` __sync_fetch Ian Lance Taylor
2012-11-19  6:07                         ` __sync_fetch Hei Chan
     [not found]                         ` <1353305098.17316.YahooMailNeo@web165003.mail.bf1.yahoo.com>
2012-11-19  6:18                           ` __sync_fetch Ian Lance Taylor
2012-11-18  8:04 ` __sync_fetch 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).