Commit c2fbf893 authored by Måns Rullgård's avatar Måns Rullgård

Alpha: add some const, kill some warnings

Originally committed as revision 16665 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b4097b13
...@@ -62,12 +62,12 @@ static inline uint64_t WORD_VEC(uint64_t x) ...@@ -62,12 +62,12 @@ static inline uint64_t WORD_VEC(uint64_t x)
#ifdef __GNUC__ #ifdef __GNUC__
#define ldq(p) \ #define ldq(p) \
(((union { \ (((const union { \
uint64_t __l; \ uint64_t __l; \
__typeof__(*(p)) __s[sizeof (uint64_t) / sizeof *(p)]; \ __typeof__(*(p)) __s[sizeof (uint64_t) / sizeof *(p)]; \
} *) (p))->__l) } *) (p))->__l)
#define ldl(p) \ #define ldl(p) \
(((union { \ (((const union { \
int32_t __l; \ int32_t __l; \
__typeof__(*(p)) __s[sizeof (int32_t) / sizeof *(p)]; \ __typeof__(*(p)) __s[sizeof (int32_t) / sizeof *(p)]; \
} *) (p))->__l) } *) (p))->__l)
......
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