mirror of https://git.ffmpeg.org/ffmpeg.git
ppc: avutil: Drop a potentially dangerous workaround
The compiler is free to optimize such expressions in any sort of way.
This commit is contained in:
parent
881b80b329
commit
254eb5b6fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue