Mercurial > libavcodec.hg
diff dsputil.c @ 493:873b9075d853 libavcodec
move unaligned access macros to dsputil.h - added unaligned 32 bit store
author | bellard |
---|---|
date | Tue, 11 Jun 2002 13:43:27 +0000 |
parents | a7cbee351b55 |
children | 0cb7ab35ccb2 |
line wrap: on
line diff
--- a/dsputil.c Tue Jun 11 13:42:18 2002 +0000 +++ b/dsputil.c Tue Jun 11 13:43:27 2002 +0000 @@ -252,21 +252,6 @@ } } -#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 LD64(a) (*((uint64_t*)(a))) - -#endif /* !__GNUC__ */ - #if 0 #define PIXOP2(OPNAME, OP) \