00001 00038 #ifndef ATOMIC_H_INCLUDED 00039 #define ATOMIC_H_INCLUDED 00040 00071 #include <arch/atomic.h> 00072 00077 #define atomic_inc(ptr) atomic_add(ptr, 1) 00078 00082 #define atomic_dec(ptr) atomic_sub(ptr, 1) 00083 00084 /* 00085 * Documentation for arch-specific types and functions are included 00086 * below in order to avoid duplication. 00087 */ 00088 00113 00114 00115 #endif /* ATOMIC_H_INCLUDED */
1.6.3