Re: [PATCH v3 01/10] drm/msm/dsi: Remove useless math in DSC calculations

2022-10-09 Thread Dmitry Baryshkov
On 09/10/2022 21:48, 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 store a

[PATCH v3 01/10] drm/msm/dsi: Remove useless math in DSC calculations

2022-10-09 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