Commit 0b6e80b0 authored by David Reid's avatar David Reid

Update c89atomic.

parent 44e58d60
...@@ -15481,7 +15481,7 @@ static C89ATOMIC_INLINE float c89atomic_compare_and_swap_f32(volatile float* dst ...@@ -15481,7 +15481,7 @@ static C89ATOMIC_INLINE float c89atomic_compare_and_swap_f32(volatile float* dst
c89atomic_if32 e, d; c89atomic_if32 e, d;
e.f = expected; e.f = expected;
d.f = desired; d.f = desired;
r.i = c89atomic_compare_and_swap_32((volatile c89atomic_uint32*)dst, e.i, e.i); r.i = c89atomic_compare_and_swap_32((volatile c89atomic_uint32*)dst, e.i, d.i);
return r.f; return r.f;
} }
static C89ATOMIC_INLINE double c89atomic_compare_and_swap_f64(volatile double* dst, double expected, double desired) static C89ATOMIC_INLINE double c89atomic_compare_and_swap_f64(volatile double* dst, double expected, double desired)
...@@ -15490,7 +15490,7 @@ static C89ATOMIC_INLINE double c89atomic_compare_and_swap_f64(volatile double* d ...@@ -15490,7 +15490,7 @@ static C89ATOMIC_INLINE double c89atomic_compare_and_swap_f64(volatile double* d
c89atomic_if64 e, d; c89atomic_if64 e, d;
e.f = expected; e.f = expected;
d.f = desired; d.f = desired;
r.i = c89atomic_compare_and_swap_64((volatile c89atomic_uint64*)dst, e.i, e.i); r.i = c89atomic_compare_and_swap_64((volatile c89atomic_uint64*)dst, e.i, d.i);
return r.f; return r.f;
} }
typedef c89atomic_flag c89atomic_spinlock; typedef c89atomic_flag c89atomic_spinlock;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment