Changeset aa85487 in mainline for uspace/lib/libc/arch/abs32le/include/atomic.h
- Timestamp:
- 2010-03-07T15:11:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- aadf01e
- Parents:
- 2e99277 (diff), 137691a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/abs32le/include/atomic.h
r2e99277 raa85487 43 43 #include <atomicdflt.h> 44 44 45 static inline bool cas(atomic_t *val, long ov, longnv)45 static inline bool cas(atomic_t *val, atomic_count_t ov, atomic_count_t nv) 46 46 { 47 47 if (val->count == ov) { … … 67 67 } 68 68 69 static inline longatomic_postinc(atomic_t *val)69 static inline atomic_count_t atomic_postinc(atomic_t *val) 70 70 { 71 71 /* On real hardware both the storing of the previous … … 73 73 atomic action. */ 74 74 75 longprev = val->count;75 atomic_count_t prev = val->count; 76 76 77 77 val->count++; … … 79 79 } 80 80 81 static inline longatomic_postdec(atomic_t *val)81 static inline atomic_count_t atomic_postdec(atomic_t *val) 82 82 { 83 83 /* On real hardware both the storing of the previous … … 85 85 atomic action. */ 86 86 87 longprev = val->count;87 atomic_count_t prev = val->count; 88 88 89 89 val->count--;
Note:
See TracChangeset
for help on using the changeset viewer.