Differences From Artifact [b3ae278d63]:
- File src/atomic_sync_builtins.h — part of check-in [6f9c0e8eb2] at 2017-04-14 05:13:09 on branch trunk — atomic_*.h: Add missing _Nullable (user: js, size: 3308) [annotate] [blame] [check-ins using]
To Artifact [228897fe83]:
- File
src/atomic_sync_builtins.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: 3310) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
25 26 27 28 29 30 31 | { return __sync_add_and_fetch(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 __sync_add_and_fetch(p, i); } static OF_INLINE void *_Nullable of_atomic_ptr_add(void *volatile _Nullable *_Nonnull p, intptr_t i) { return __sync_add_and_fetch(p, (void *)i); } static OF_INLINE int of_atomic_int_sub(volatile int *_Nonnull p, int i) { return __sync_sub_and_fetch(p, i); } static OF_INLINE int32_t of_atomic_int32_sub(volatile int32_t *_Nonnull p, int32_t i) { return __sync_sub_and_fetch(p, i); } static OF_INLINE void *_Nullable of_atomic_ptr_sub(void *volatile _Nullable *_Nonnull p, intptr_t i) { return __sync_sub_and_fetch(p, (void *)i); } static OF_INLINE int of_atomic_int_inc(volatile int *_Nonnull p) { return __sync_add_and_fetch(p, 1); } |
︙ | ︙ |