ppc: avutil: Drop a potentially dangerous workaround
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 10 May 2015 20:48:30 +0000 (22:48 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 31 May 2015 10:07:10 +0000 (12:07 +0200)
The compiler is free to optimize such expressions in any sort of way.

libavutil/ppc/intreadwrite.h

index 4471c6a..8f8078d 100644 (file)
 #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