osdep/atomic: add mp_atomic_double

Signed-off-by: Aman Karmani <aman@tmm1.net>
This commit is contained in:
Aman Karmani 2021-11-24 23:09:56 -08:00 committed by Jan Ekström
parent a76b1f4abd
commit 76b9254b8b
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#if HAVE_STDATOMIC
#include <stdatomic.h>
typedef _Atomic float mp_atomic_float;
typedef _Atomic double mp_atomic_double;
typedef _Atomic int64_t mp_atomic_int64;
typedef _Atomic uint64_t mp_atomic_uint64;
#else
@ -40,6 +41,7 @@ typedef struct { uint_least32_t v; } atomic_uint_least32_t;
typedef struct { unsigned long long v; } atomic_ullong;
typedef struct { float v; } mp_atomic_float;
typedef struct { double v; } mp_atomic_double;
typedef struct { int64_t v; } mp_atomic_int64;
typedef struct { uint64_t v; } mp_atomic_uint64;