[vlc-commits] Remove useless VLC atomic float helpers
Rémi Denis-Courmont
git at videolan.org
Thu Feb 27 21:33:49 CET 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 27 22:33:22 2020 +0200| [36a58d83aaf6cd83934998e9223c18be85fd1b27] | committer: Rémi Denis-Courmont
Remove useless VLC atomic float helpers
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36a58d83aaf6cd83934998e9223c18be85fd1b27
---
include/vlc_atomic.h | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index e2d4fe5360..2f009fe3be 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -34,31 +34,6 @@
# include <stdatomic.h>
# include <vlc_common.h>
-typedef atomic_uint_least32_t vlc_atomic_float;
-
-static inline void vlc_atomic_init_float(vlc_atomic_float *var, float f)
-{
- union { float f; uint32_t i; } u;
- u.f = f;
- atomic_init(var, u.i);
-}
-
-/** Helper to retrieve a single precision from an atom. */
-static inline float vlc_atomic_load_float(vlc_atomic_float *atom)
-{
- union { float f; uint32_t i; } u;
- u.i = atomic_load(atom);
- return u.f;
-}
-
-/** Helper to store a single precision into an atom. */
-static inline void vlc_atomic_store_float(vlc_atomic_float *atom, float f)
-{
- union { float f; uint32_t i; } u;
- u.f = f;
- atomic_store(atom, u.i);
-}
-
typedef struct vlc_atomic_rc_t {
atomic_uint refs;
} vlc_atomic_rc_t;
More information about the vlc-commits
mailing list