Subversion Repositories HelenOS

Rev

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 1888
Line 30... Line 30...
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef __mips32_ATOMIC_H__
35
#ifndef KERN_mips32_ATOMIC_H_
36
#define __mips32_ATOMIC_H__
36
#define KERN_mips32_ATOMIC_H_
37
 
37
 
38
#define atomic_inc(x)   ((void) atomic_add(x, 1))
38
#define atomic_inc(x)   ((void) atomic_add(x, 1))
39
#define atomic_dec(x)   ((void) atomic_add(x, -1))
39
#define atomic_dec(x)   ((void) atomic_add(x, -1))
40
 
40
 
41
#define atomic_postinc(x) (atomic_add(x, 1) - 1)
41
#define atomic_postinc(x) (atomic_add(x, 1) - 1)