gnu.gcc.help
[Top] [All Lists]

Test for availability of __sync builtins

Subject: Test for availability of __sync builtins
From: Luke D <ldalessandro@xxxxxxxxx>
Date: Wed, 23 Jul 2008 05:21:42 -0700 (PDT)
Newsgroups: gnu.gcc.help

Does anyone have a good way to test for the availability of __sync_*
builtins on gcc 4.0+? I can't seem to find a defined macro, or even a
combination of macros that let me switch between using the builtins or
custom atomic ops code.

Luke

<Prev in Thread] Current Thread [Next in Thread>
  • Test for availability of __sync builtins, Luke D <=