Subversion Repositories HelenOS-historic

Rev

Rev 1104 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1104 Rev 1107
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __mips32_ATOMIC_H__
29
#ifndef __mips32_ATOMIC_H__
30
#define __mips32_ATOMIC_H__
30
#define __mips32_ATOMIC_H__
31
 
31
 
32
#include <arch/types.h>
-
 
33
#include <typedefs.h>
-
 
34
 
-
 
35
#define atomic_inc(x)   ((void) atomic_add(x, 1))
32
#define atomic_inc(x)   ((void) atomic_add(x, 1))
36
#define atomic_dec(x)   ((void) atomic_add(x, -1))
33
#define atomic_dec(x)   ((void) atomic_add(x, -1))
37
 
34
 
38
#define atomic_postinc(x) (atomic_add(x, 1) - 1)
35
#define atomic_postinc(x) (atomic_add(x, 1) - 1)
39
#define atomic_postdec(x) (atomic_add(x, -1) + 1)
36
#define atomic_postdec(x) (atomic_add(x, -1) + 1)