ObjFW  Diff

Differences From Artifact [cc41e9df60]:

To Artifact [d6831a1ea4]:


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 *
 * 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.
 */

OF_ASSUME_NONNULL_BEGIN

static OF_INLINE int
of_atomic_int_add(volatile int *_Nonnull p, int i)
{
	return (*p += i);
}

static OF_INLINE int32_t







<
<







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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
		return true;
	}

	return false;
}

static OF_INLINE void
of_memory_barrier_sync(void)
{
	/* nop */
}

static OF_INLINE void
of_memory_barrier_enter(void)
{
	/* nop */
}

static OF_INLINE void
of_memory_barrier_exit(void)
{
	/* nop */
}

static OF_INLINE void
of_memory_barrier_producer(void)
{
	/* nop */
}

static OF_INLINE void
of_memory_barrier_consumer(void)
{
	/* nop */
}

OF_ASSUME_NONNULL_END







|





|





|



<
<
<
<
<
<
<
<
<
<
<
<
<
<
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 */
}