Changes in uspace/lib/libc/arch/abs32le/include/atomic.h [b03a666:81983e3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/abs32le/include/atomic.h
rb03a666 r81983e3 43 43 #include <atomicdflt.h> 44 44 45 static inline bool cas(atomic_t *val, atomic_count_t ov, atomic_count_tnv)45 static inline bool cas(atomic_t *val, long ov, long nv) 46 46 { 47 47 if (val->count == ov) { … … 67 67 } 68 68 69 static inline atomic_count_tatomic_postinc(atomic_t *val)69 static inline long 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 atomic_count_tprev = val->count;75 long prev = val->count; 76 76 77 77 val->count++; … … 79 79 } 80 80 81 static inline atomic_count_tatomic_postdec(atomic_t *val)81 static inline long 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 atomic_count_tprev = val->count;87 long prev = val->count; 88 88 89 89 val->count--;
Note:
See TracChangeset
for help on using the changeset viewer.