Differences From Artifact [3924fe3a37]:
- File src/atomic_no_threads.h — part of check-in [6f9c0e8eb2] at 2017-04-14 05:13:09 on branch trunk — atomic_*.h: Add missing _Nullable (user: js, size: 3041) [annotate] [blame] [check-ins using]
To Artifact [152148fa91]:
- File
src/atomic_no_threads.h
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 3043) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
25 26 27 28 29 30 31 | { return (*p += i); } static OF_INLINE void *_Nullable of_atomic_ptr_add(void *volatile _Nullable *_Nonnull p, intptr_t i) { | | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | { return (*p += i); } static OF_INLINE void *_Nullable of_atomic_ptr_add(void *volatile _Nullable *_Nonnull p, intptr_t i) { return (*(char *volatile *)p += i); } static OF_INLINE int of_atomic_int_sub(volatile int *_Nonnull p, int i) { return (*p -= i); } static OF_INLINE int32_t of_atomic_int32_sub(volatile int32_t *_Nonnull p, int32_t i) { return (*p -= i); } static OF_INLINE void *_Nullable of_atomic_ptr_sub(void *volatile _Nullable *_Nonnull p, intptr_t i) { return (*(char *volatile *)p -= i); } static OF_INLINE int of_atomic_int_inc(volatile int *_Nonnull p) { return ++*p; } |
︙ | ︙ |