aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-05-10 22:48:30 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-05-31 12:07:10 +0200
commit254eb5b6faebb7bcfc3cefc1edced6652fe9d5be (patch)
tree663aa73d942c25672c30ce23fcfc632d8df465d3
parent881b80b3294483696a21b21a69fa5eee30f33037 (diff)
downloadffmpeg-254eb5b6faebb7bcfc3cefc1edced6652fe9d5be.tar.gz
ppc: avutil: Drop a potentially dangerous workaround
The compiler is free to optimize such expressions in any sort of way.
-rw-r--r--libavutil/ppc/intreadwrite.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavutil/ppc/intreadwrite.h b/libavutil/ppc/intreadwrite.h
index 4471c6a31e..8f8078d2c9 100644
--- a/libavutil/ppc/intreadwrite.h
+++ b/libavutil/ppc/intreadwrite.h
@@ -24,20 +24,6 @@
#include <stdint.h>
#include "config.h"
-/*
- * -O0 would compile the packed struct version, which is used by
- * default, in an overly verbose fashion, so we override it here.
- */
-#if HAVE_BIGENDIAN
-#define AV_RB64(p) (*(const uint64_t *)(p))
-#define AV_WB64(p, v) (*(uint64_t *)(p) = (v))
-
-#else
-#define AV_RL64(p) (*(const uint64_t *)(p))
-#define AV_WL64(p, v) (*(uint64_t *)(p) = (v))
-
-#endif
-
#if HAVE_XFORM_ASM
#if HAVE_BIGENDIAN