]> git.eshelyaron.com Git - emacs.git/commit
Correct values of INSTCTRL flags tested
authorPo Lu <luangruo@yahoo.com>
Mon, 22 Jan 2024 07:29:18 +0000 (15:29 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jan 2024 16:55:06 +0000 (17:55 +0100)
commit1bf690dffd3a24455c42113eeb2aff4fa6883ebd
tree18cdc27c4025909bd862cdc20badadc8cb7a22a3
parent64f425990488ff9b49a4322f7fb1c7801f109418
Correct values of INSTCTRL flags tested

* src/sfnt.c (sfnt_mul_f26dot6_round): New function.
(sfnt_mul_f26dot6_fixed): Replace by call to
sfnt_mul_fixed_round.
(MUL): Round result, as the Apple and MS scalers do.
(sfnt_interpret_control_value_program): The instruction control
flag which reverts CVT modifications is 2, not 4.

(cherry picked from commit 05495bfa6c39816e210bf655c0cbd44ba6dfcc7c)
src/sfnt.c