Re: [PATCH v0 21/71] perf tools: Add feature test for__sync_val_compare_and_swap

From: Andi Kleen
Date: Wed Dec 11 2013 - 15:07:29 EST


> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/