Messages in this thread | | | Date | Thu, 12 Dec 2013 15:45:57 +0200 | From | Adrian Hunter <> | Subject | Re: [PATCH v0 21/71] perf tools: Add feature test for __sync_val_compare_and_swap |
| |
On 11/12/13 22:07, Andi Kleen wrote: >> Can you provide more info about these gcc builtins and what is the >> minimum system where this test will succeed? > > CMPXCHG for x86 is available since the 486 or so, so practically > everywhere. > > I think that's mainly for other architectures. > > it would be reasonable to just use #if defined(__x86_64__) || defined(__i386__) > instead.
__sync_val_compare_and_swap() is being used in the itrace abstraction which is architecture neutral, so I can't use x86 defines.
| |