April 2, 2026
4:54 a.m.
On Tue Mar 31 12:16:08 2026 +0000, Matteo Bruni wrote:
Smart! I'd have `#define`s for these conversion numbers as well, maybe something like: ``` #define POS_FRAC_TO_SIGNED_SHIFT 1 #define POS_FRAC_SIGNED_MAX (1ll << 31) ``` I expect the resulting code to be more verbose but also quite a bit more self-explanatory. Added a macro for fixed point to float conversion.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10423#note_134752