Changes in uspace/lib/libc/arch/abs32le/include/atomic.h [81983e3:b03a666] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/abs32le/include/atomic.h
r81983e3 rb03a666 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.