Differences From Artifact [cc41e9df60]:
- File
src/atomic_no_threads.h
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 3211) [annotate] [blame] [check-ins using]
To Artifact [d6831a1ea4]:
- File src/atomic_no_threads.h — part of check-in [48ffea9a9a] at 2017-04-13 13:19:02 on branch trunk — Clean up memory barriers (user: js, size: 3021) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
10 11 12 13 14 15 16 | * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ | < < | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ static OF_INLINE int of_atomic_int_add(volatile int *_Nonnull p, int i) { return (*p += i); } static OF_INLINE int32_t |
︙ | ︙ | |||
143 144 145 146 147 148 149 | return true; } return false; } static OF_INLINE void | | | | < < < < < < < < < < < < < < | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | return true; } return false; } static OF_INLINE void of_memory_barrier(void) { /* nop */ } static OF_INLINE void of_memory_barrier_acquire(void) { /* nop */ } static OF_INLINE void of_memory_barrier_release(void) { /* nop */ } |