15 Dec
2023
15 Dec
'23
11:34 a.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/spirv.c:
+ ++e; + m &= ~0x400u; + } + } + else if (e == 31u) + { + if (!m) + { + /* Positive or negative infinity */ + return s | 0x7f800000u; + } + else + { + /* Nan -- preserve sign and significand bits */ + return s | 0x7f800000u | (m << 13); + } No problem if you want to keep it for clarity, but the two branches are actually identical if `!m`.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/519#note_56067