1
// Copyright (C) 2013 Codership Oy <info@codership.com>
4
* @file Atomic memory access functions. At the moment these are just
5
* redefinitions from gcc atomic builtins.
14
#define gu_sync_fetch_and_add __sync_fetch_and_add
15
#define gu_sync_fetch_and_sub __sync_fetch_and_sub
16
#define gu_sync_fetch_and_or __sync_fetch_and_or
17
#define gu_sync_fetch_and_and __sync_fetch_and_and
18
#define gu_sync_fetch_and_xor __sync_fetch_and_xor
19
#define gu_sync_fetch_and_nand __gu_sync_fetch_and_nand
22
#define gu_sync_add_and_fetch __sync_add_and_fetch
23
#define gu_sync_sub_and_fetch __sync_sub_and_fetch
24
#define gu_sync_or_and_fetch __sync_or_and_fetch
25
#define gu_sync_and_and_fetch __sync_and_and_fetch
26
#define gu_sync_xor_and_fetch __sync_xor_and_fetch
27
#define gu_sync_nand_and_fetch __gu_sync_nand_and_fetch
30
#error "Compiler not supported"
33
#endif /* !GU_ATOMIC_H */