Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1866 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | * @ingroup libcmips32eb |
33 | * @ingroup libcmips32eb |
34 | */ |
34 | */ |
35 | 35 | ||
36 | #ifndef __mips32_ATOMIC_H__ |
36 | #ifndef LIBC_mips32_ATOMIC_H_ |
37 | #define __mips32_ATOMIC_H__ |
37 | #define LIBC_mips32_ATOMIC_H_ |
38 | 38 | ||
39 | #define atomic_inc(x) ((void) atomic_add(x, 1)) |
39 | #define atomic_inc(x) ((void) atomic_add(x, 1)) |
40 | #define atomic_dec(x) ((void) atomic_add(x, -1)) |
40 | #define atomic_dec(x) ((void) atomic_add(x, -1)) |
41 | 41 | ||
42 | #define atomic_postinc(x) (atomic_add(x, 1) - 1) |
42 | #define atomic_postinc(x) (atomic_add(x, 1) - 1) |
Line 73... | Line 73... | ||
73 | 73 | ||
74 | #endif |
74 | #endif |
75 | 75 | ||
76 | /** @} |
76 | /** @} |
77 | */ |
77 | */ |
78 | - |