Re: [PATCH v2 1/7] drm/msm/dsi: Remove useless math in DSC calculations

2022-10-05 Thread Abhinav Kumar
On 10/5/2022 11:16 AM, Marijn Suijten wrote: Multiplying a value by 2 and adding 1 to it always results in a value that is uneven, and that 1 gets truncated immediately when performing integer division by 2 again. There is no "rounding" possible here. After that target_bpp_x16 is used to sto

[PATCH v2 1/7] drm/msm/dsi: Remove useless math in DSC calculations

2022-10-05 Thread Marijn Suijten
Multiplying a value by 2 and adding 1 to it always results in a value that is uneven, and that 1 gets truncated immediately when performing integer division by 2 again. There is no "rounding" possible here. After that target_bpp_x16 is used to store a multiplication of bits_per_pixel by 16 which