mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 03:00:42 +02:00
These only perform bit arithmetic, so we can allow them to be used in constexpr contexts. This allows clang to collapse quite a bit of code for the table initializing functions. For example, in InitializeVEXTables(), with these as inline (but not constexpr) functions, clang will individually put all of the table entries onto the stack. With these as constexpr functions, clang will be able to deduce that it can construct the tables at compile time and reduces the amount of generated code quite a bit.