mirror of https://github.com/mpv-player/mpv
osdep/atomic: add mp_atomic_double
Signed-off-by: Aman Karmani <aman@tmm1.net>
This commit is contained in:
parent
a76b1f4abd
commit
76b9254b8b
|
@ -25,6 +25,7 @@
|
||||||
#if HAVE_STDATOMIC
|
#if HAVE_STDATOMIC
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
typedef _Atomic float mp_atomic_float;
|
typedef _Atomic float mp_atomic_float;
|
||||||
|
typedef _Atomic double mp_atomic_double;
|
||||||
typedef _Atomic int64_t mp_atomic_int64;
|
typedef _Atomic int64_t mp_atomic_int64;
|
||||||
typedef _Atomic uint64_t mp_atomic_uint64;
|
typedef _Atomic uint64_t mp_atomic_uint64;
|
||||||
#else
|
#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 { unsigned long long v; } atomic_ullong;
|
||||||
|
|
||||||
typedef struct { float v; } mp_atomic_float;
|
typedef struct { float v; } mp_atomic_float;
|
||||||
|
typedef struct { double v; } mp_atomic_double;
|
||||||
typedef struct { int64_t v; } mp_atomic_int64;
|
typedef struct { int64_t v; } mp_atomic_int64;
|
||||||
typedef struct { uint64_t v; } mp_atomic_uint64;
|
typedef struct { uint64_t v; } mp_atomic_uint64;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue