205
206
207
208
209
210
211
212
213
214
215
216
217
218
|
j = __sync_sub_and_fetch(&i, 1);
while (!__sync_bool_compare_and_swap(&i, 0, 1));
], [
AC_MSG_RESULT(yes, with -march=i486)
atomic_ops="gcc builtins (with -march=i486)"
AC_DEFINE(OF_HAVE_GCC_ATOMIC_OPS, 1,
[Whether gcc atomic operations are available])
], [
AC_MSG_RESULT(no)
OBJCFLAGS="$old_OBJCFLAGS"])])
if test x"$atomic_ops" = x"none"; then
AC_CHECK_HEADER(libkern/OSAtomic.h, [
atomic_ops="libkern/OSAtomic.h"
|
>
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
j = __sync_sub_and_fetch(&i, 1);
while (!__sync_bool_compare_and_swap(&i, 0, 1));
], [
AC_MSG_RESULT(yes, with -march=i486)
atomic_ops="gcc builtins (with -march=i486)"
AC_DEFINE(OF_HAVE_GCC_ATOMIC_OPS, 1,
[Whether gcc atomic operations are available])
AC_SUBST(ATOMIC_OBJCFLAGS, "-march=i486")
], [
AC_MSG_RESULT(no)
OBJCFLAGS="$old_OBJCFLAGS"])])
if test x"$atomic_ops" = x"none"; then
AC_CHECK_HEADER(libkern/OSAtomic.h, [
atomic_ops="libkern/OSAtomic.h"
|