Changeset 9a2d6e1 in mainline for arch/ia32/include/atomic.h
- Timestamp:
- 2006-03-15T18:58:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 649799a
- Parents:
- 9e1c942
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/atomic.h
r9e1c942 r9a2d6e1 60 60 } 61 61 62 static inline count_t atomic_ inc_pre(atomic_t *val)62 static inline count_t atomic_postinc(atomic_t *val) 63 63 { 64 64 count_t r; … … 73 73 } 74 74 75 static inline count_t atomic_ dec_pre(atomic_t *val)75 static inline count_t atomic_postdec(atomic_t *val) 76 76 { 77 77 count_t r; … … 86 86 } 87 87 88 #define atomic_ inc_post(val) (atomic_inc_pre(val)+1)89 #define atomic_ dec_post(val) (atomic_dec_pre(val)-1)88 #define atomic_preinc(val) (atomic_postinc(val)+1) 89 #define atomic_predec(val) (atomic_postdec(val)-1) 90 90 91 91 static inline __u32 test_and_set(atomic_t *val) {
Note:
See TracChangeset
for help on using the changeset viewer.