> -     b = (((s64) freq) << 20) / state->cfg.xtal_freq - (((s64) a) << 20);
> +     b = (s32)div64_s64(((s64) freq) << 20,
> +                        state->cfg.xtal_freq - (((s64) a) << 20));
> +

I'm afraid it should be like the following.
> +     b = (s32)(div64_s64(((s64) freq) << 20, state->cfg.xtal_freq)
> +                     - (((s64) a) << 20));

regads,
akihiro

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to