/* Convert 112.16 fixed point value to 48.16 with clamping for the out of range values.  */
static force_inline pixman_fixed_48_16_t fixed_112_16_to_fixed_48_16(int64_t hi, int64_t lo, pixman_bool_t *clampflag)
/* Convert 112.16 fixed point value to 48.16 with clamping for the out of range values.  */
static force_inline pixman_fixed_48_16_t fixed_112_16_to_fixed_48_16(int64_t hi, int64_t lo, pixman_bool_t *clampflag)
{
    if ((lo >> 63) != hi)
    {
        *clampflag = TRUE;
        return hi >= 0 ? INT64_MAX : INT64_MIN;
    }
    else
    {
        return lo;
    }
}