JitCommon: Signed 32-bit division magic constants

Add a function to calculate the magic constants required to optimize
signed 32-bit division.

Since this optimization is not exclusive to any particular architecture,
JitCommon seemed like a good place to put this.
This commit is contained in:
Sintendo
2021-03-03 23:48:28 +01:00
parent c9adc60d73
commit 5bb8798df6
6 changed files with 121 additions and 0 deletions

View File

@ -27,6 +27,12 @@
<Project>{41279555-f94f-4ebc-99de-af863c10c5c4}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Core\PowerPC\JitCommon\DivUtils.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="Core\PowerPC\JitCommon\DivUtils.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>