lkml.org 
[lkml]   [2013]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v0 21/71] perf tools: Add feature test for __sync_val_compare_and_swap
> 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.

-Andi


\
 
 \ /
  Last update: 2013-12-12 10:21    [W:0.151 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site