Subversion Repositories HelenOS-historic

Rev

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

Rev 1113 Rev 1656
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
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
-
 
33
 */
-
 
34
 
29
#ifndef __mips32_ATOMIC_H__
35
#ifndef __mips32_ATOMIC_H__
30
#define __mips32_ATOMIC_H__
36
#define __mips32_ATOMIC_H__
31
 
37
 
32
#define atomic_inc(x)   ((void) atomic_add(x, 1))
38
#define atomic_inc(x)   ((void) atomic_add(x, 1))
33
#define atomic_dec(x)   ((void) atomic_add(x, -1))
39
#define atomic_dec(x)   ((void) atomic_add(x, -1))
Line 63... Line 69...
63
 
69
 
64
    return v;
70
    return v;
65
}
71
}
66
 
72
 
67
#endif
73
#endif
-
 
74
 
-
 
75
 /** @}
-
 
76
 */
-
 
77