[PATCH 1/4] d3dx9: Use BitScanReverse in make_pow2.

Matteo Bruni matteo.mystral at gmail.com
Thu Jun 11 15:13:41 CDT 2020


On Wed, Jun 10, 2020 at 2:21 PM Jacek Caban <jacek at codeweavers.com> wrote:
>
> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
> ---
> I left behaviour for num == 1 unchanged, but according to the comment it
> should be 0. We don't seem to have a test for that.

You mean for num == 0? That's sort of an invalid value, it shouldn't
matter (and returning 1 for that seems safer anyway).



More information about the wine-devel mailing list