Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1866 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup libcmips32 |
29 | /** @addtogroup libcmips32 |
30 | * @{ |
30 | * @{ |
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 71... | Line 71... | ||
71 | return v; |
71 | return v; |
72 | } |
72 | } |
73 | 73 | ||
74 | #endif |
74 | #endif |
75 | 75 | ||
76 | /** @} |
76 | /** @} |
77 | */ |
77 | */ |
78 | - |