gdiplus: Improve performance of units_to_pixels by not using division.
commit012f61067591c53a5d2508d8721223ae9a835383
authorBartosz Kosiorek <gang65@poczta.onet.pl>
Tue, 24 Oct 2023 20:12:21 +0000 (24 22:12 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 25 Oct 2023 19:25:18 +0000 (25 14:25 -0500)
tree37b5de0c099409764dd6f7b15ba34f177c3785f1
parent059094c1c18ddc33b04eac53a72fd0eb7510be94
gdiplus: Improve performance of units_to_pixels by not using division.

Single float division (divss) is at least four time slower,
than multiplication (mulss).
More information: https://www.agner.org/optimize/instruction_tables.pdf

The units_to_pixels was optimized to use only multiplication (mulss),
and avoid using divisions (divss).
dlls/gdiplus/gdiplus.c