26 #if defined (HAVE_CONFIG_H)
32 #if defined (__GNUC__)
37 return __sync_add_and_fetch (
x, 1);
43 return __sync_sub_and_fetch (
x, 1);
48 #elif defined (OCTAVE_STDATOMIC_H_OK)
49 # include <stdatomic.h>
69 #elif defined (_MSC_VER)
75 #if defined (OCTAVE_ENABLE_64)
76 return _InterlockedIncrement64 (
x);
78 return _InterlockedIncrement (
x);
85 #if defined (OCTAVE_ENABLE_64)
86 return _InterlockedDecrement64 (
x);
88 return _InterlockedDecrement (
x);
93 # error "Octave requires atomic integer increment and decrement functions"
F77_RET_T const F77_DBLE * x
octave_idx_type octave_atomic_increment(octave_idx_type *x)
octave_idx_type octave_atomic_decrement(octave_idx_type *x)