X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fppc%2Fhevcdsp.c;h=dcae43305a6785ca3b5663e37ff2b1a77951f08e;hb=27e30c73d722ec13e59753dea91be00859c72bf2;hp=4b1037d792d4dd19403368fc58a5aa173c6e4a45;hpb=6f277e1f76121736baf98aedb2bf55d8bb413fa7;p=ffmpeg diff --git a/libavcodec/ppc/hevcdsp.c b/libavcodec/ppc/hevcdsp.c index 4b1037d792d..dcae43305a6 100644 --- a/libavcodec/ppc/hevcdsp.c +++ b/libavcodec/ppc/hevcdsp.c @@ -41,8 +41,9 @@ static const vec_u8 mask[2] = { { 0x04, 0x05, 0x0C, 0x0D, 0x14, 0x15, 0x1C, 0x1D, 0x06, 0x07, 0x0E, 0x0F, 0x16, 0x17, 0x1E, 0x1F }, }; -static void transform4x4(vec_s16 src_01, vec_s16 src_23, vec_s32 res[4], - const int shift, int16_t *coeffs) +static av_always_inline void transform4x4(vec_s16 src_01, vec_s16 src_23, + vec_s32 res[4], const int shift, + int16_t *coeffs) { vec_s16 src_02, src_13; vec_s32 zero = vec_splat_s32(0); @@ -67,7 +68,8 @@ static void transform4x4(vec_s16 src_01, vec_s16 src_23, vec_s32 res[4], res[3] = vec_sub(e0, o0); } -static void scale(vec_s32 res[4], vec_s16 res_packed[2], int shift) +static av_always_inline void scale(vec_s32 res[4], vec_s16 res_packed[2], + const int shift) { int i; vec_u32 v_shift = vec_splat_u32(shift);