Commit 2ad7d5c7 authored by michaelni's avatar michaelni

fixing alignment for alignment picky cpus


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@535 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c811be3
...@@ -249,11 +249,21 @@ void add_pixels_clamped_c(const DCTELEM *block, UINT8 *pixels, int line_size) ...@@ -249,11 +249,21 @@ void add_pixels_clamped_c(const DCTELEM *block, UINT8 *pixels, int line_size)
} }
} }
//FIXME someone with a alignemtent picky cpu should change these #ifdef __GNUC__
struct unaligned_64 { uint64_t l; } __attribute__((packed));
struct unaligned_32 { uint32_t l; } __attribute__((packed));
#define LD32(a) (((const struct unaligned_32 *) (a))->l)
#define LD64(a) (((const struct unaligned_64 *) (a))->l)
#else /* __GNUC__ */
#define LD32(a) (*((uint32_t*)(a))) #define LD32(a) (*((uint32_t*)(a)))
#define LD64(a) (*((uint64_t*)(a))) #define LD64(a) (*((uint64_t*)(a)))
#endif /* !__GNUC__ */
#if 0 #if 0
#define PIXOP2(OPNAME, OP) \ #define PIXOP2(OPNAME, OP) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment