Changeset 10c071e in mainline for arch/sparc64/include/atomic.h
- Timestamp:
- 2005-12-15T16:57:48Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6c68b97
- Parents:
- b4cad8b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/atomic.h
rb4cad8b2 r10c071e 39 39 */ 40 40 41 static inline void atomic_inc(atomic_t *val) { 41 static inline void atomic_inc(atomic_t *val) 42 { 42 43 val->count++; 43 44 } 44 45 45 static inline void atomic_dec(atomic_t *val) { 46 static inline void atomic_dec(atomic_t *val) 47 { 46 48 val->count--; 47 49 } 48 50 51 static inline void atomic_set(atomic_t *val, __u64 i) 52 { 53 val->count = i; 54 } 55 56 static inline __u64 atomic_get(atomic_t *val) 57 { 58 return val->count; 59 } 60 49 61 #endif
Note:
See TracChangeset
for help on using the changeset viewer.