diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-05-19 22:30:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-20 02:09:32 +0200 |
commit | 9293e823767daee79386cc797510808f4eed01a3 (patch) | |
tree | b1f482f0cdf51c1ef2d78931665db6a7175502a8 /bus/selinux.c | |
parent | 74bff5af804817372aece931c792b53c8ec534e1 (diff) |
atomic: implement atomic operations based on gcc's __sync extension
Newer gccs and intel ccs support a __sync extension for making use of
atomic operations. This patch replaces the handcrafted x86 atomic
operation support with usage of __sync.
__sync is supported by more processors and by more compilers than the
old assembler code. Also, this extension has been available on gcc for
quite a while now for x86, so replacing the old assembler code should
only be a loss when very old compiilers are used.
Diffstat (limited to 'bus/selinux.c')
0 files changed, 0 insertions, 0 deletions