static inline void scale_mv(AVSContext *h, int *d_x, int *d_y,

                            cavs_vector *src, int distp)

{

    int den = h->scale_den[src->ref];



    *d_x = (src->x * distp * den + 256 + (src->x >> 31)) >> 9;

    *d_y = (src->y * distp * den + 256 + (src->y >> 31)) >> 9;

}

static inline void scale_mv(AVSContext *h, int *d_x, int *d_y,

                            cavs_vector *src, int distp)

{

    int den = h->scale_den[src->ref];



    *d_x = (src->x * distp * den + 256 + (src->x >> 31)) >> 9;

    *d_y = (src->y * distp * den + 256 + (src->y >> 31)) >> 9;

}

static inline void FUNC_0(AVSContext *VAR_0, int *VAR_1, int *VAR_2,

                            cavs_vector *VAR_3, int VAR_4)

{

    int VAR_5 = VAR_0->scale_den[VAR_3->ref];



    *VAR_1 = (VAR_3->x * VAR_4 * VAR_5 + 256 + (VAR_3->x >> 31)) >> 9;

    *VAR_2 = (VAR_3->y * VAR_4 * VAR_5 + 256 + (VAR_3->y >> 31)) >> 9;

}

static inline void FUNC_0(AVSContext *VAR_0, int *VAR_1, int *VAR_2,
cavs_vector *VAR_3, int VAR_4)
{ int VAR_5 = VAR_0->scale_den[VAR_3->ref]; *VAR_1 = (VAR_3->x * VAR_4 * VAR_5 + 256 + (VAR_3->x >> 31)) >> 9; *VAR_2 = (VAR_3->y * VAR_4 * VAR_5 + 256 + (VAR_3->y >> 31)) >> 9; }