Subversion Repositories HelenOS-historic

Rev

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

Rev 1001 Rev 1024
Line 61... Line 61...
61
        : "=&r" (tmp), "=m" (val->count)
61
        : "=&r" (tmp), "=m" (val->count)
62
        : "r" (&val->count), "m" (val->count)
62
        : "r" (&val->count), "m" (val->count)
63
        : "cc");
63
        : "cc");
64
}
64
}
65
 
65
 
66
static inline __u32 atomic_inc_pre(atomic_t *val)
66
static inline __u32 atomic_postinc(atomic_t *val)
67
{
67
{
68
    atomic_inc(val);
68
    atomic_inc(val);
69
    return val->count - 1;
69
    return val->count - 1;
70
}
70
}
71
 
71
 
72
static inline __u32 atomic_dec_pre(atomic_t *val)
72
static inline __u32 atomic_postdec(atomic_t *val)
73
{
73
{
74
    atomic_dec(val);
74
    atomic_dec(val);
75
    return val->count + 1;
75
    return val->count + 1;
76
}
76
}
77
 
77
 
78
static inline __u32 atomic_inc_post(atomic_t *val)
78
static inline __u32 atomic_preinc(atomic_t *val)
79
{
79
{
80
    atomic_inc(val);
80
    atomic_inc(val);
81
    return val->count;
81
    return val->count;
82
}
82
}
83
 
83
 
84
static inline __u32 atomic_dec_post(atomic_t *val)
84
static inline __u32 atomic_predec(atomic_t *val)
85
{
85
{
86
    atomic_dec(val);
86
    atomic_dec(val);
87
    return val->count;
87
    return val->count;
88
}
88
}
89
 
89