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;
/* 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 ) ); \
}
#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 ) ); \
}
#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 ) ); \
/* 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; \