Commit 348de7f6 authored by Eric Petit's avatar Eric Petit

Fixed warnings with PPC 64

git-svn-id: svn://svn.videolan.org/x264/trunk@30 df754926-b1dd-0310-bc7b-ec298dee348c
parent 2885471d
......@@ -162,7 +162,7 @@ static inline void mc_hh_w4( uint8_t *src, int i_src,
static inline void mc_hh_w8( uint8_t *src, int i_src,
uint8_t *dst, int i_dst, int i_height )
{
int x, y;
long x, y;
DECLARE_ALIGNED( int16_t, tmp[8], 16 );
LOAD_ZERO;
......
......@@ -38,7 +38,7 @@
/* Macros to load aligned or unaligned data without risking buffer
overflows. */
#define LOAD_16( p, v ) \
if( (int) p & 0xF ) \
if( (long) p & 0xF ) \
{ \
v = vec_perm( vec_ld( 0, p ), vec_ld( 16, p ), \
vec_lvsl( 0, p ) ); \
......@@ -49,11 +49,11 @@
}
#define LOAD_8( p, v ) \
if( !( (int) p & 0xF ) ) \
if( !( (long) p & 0xF ) ) \
{ \
v = vec_ld( 0, p ); \
} \
else if( ( (int) p & 0xF ) < 9 ) \
else if( ( (long) p & 0xF ) < 9 ) \
{ \
v = vec_perm( vec_ld( 0, p ), (vector unsigned char) zero, \
vec_lvsl( 0, p ) ); \
......@@ -65,11 +65,11 @@
}
#define LOAD_4( p, v ) \
if( !( (int) p & 0xF ) ) \
if( !( (long) p & 0xF ) ) \
{ \
v = vec_ld( 0, p ); \
} \
else if( ( (int) p & 0xF ) < 13 ) \
else if( ( (long) p & 0xF ) < 13 ) \
{ \
v = vec_perm( vec_ld( 0, p ), (vector unsigned char) zero, \
vec_lvsl( 0, p ) ); \
......@@ -82,7 +82,7 @@
/* Store aligned or unaligned data */
#define STORE_16( v, p ) \
if( (int) p & 0xF ) \
if( (long) p & 0xF ) \
{ \
vector unsigned char tmp1, tmp2; \
vector unsigned char align, mask; \
......
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