change clz_tab array length to 129 to match GMP
This commit is contained in:
parent
37e9081e3e
commit
171de8daed
@ -635,7 +635,7 @@ postbuild "$(TargetPath)" 14
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="..\..\build.vc/vsyasm.targets" />
|
||||
<Import Project="..\..\build.vc\vsyasm.targets" />
|
||||
</ImportGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\gmp-h.in" />
|
||||
|
@ -620,7 +620,7 @@ postbuild "$(TargetPath)" 14
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="..\..\build.vc/vsyasm.targets" />
|
||||
<Import Project="..\..\build.vc\vsyasm.targets" />
|
||||
</ImportGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\gmp-h.in" />
|
||||
|
@ -1,6 +1,6 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.24720.0
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lib_mpir_k8", "lib_mpir_k8\lib_mpir_k8.vcxproj", "{22D14BC4-ADC6-48C6-8BA1-4AC45799B945}"
|
||||
EndProject
|
||||
|
@ -294,7 +294,7 @@ extern UWtype mpn_udiv_qrnnd_r _PROTO ((UWtype, UWtype, UWtype, UWtype *));
|
||||
#endif
|
||||
|
||||
#ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB
|
||||
extern const unsigned char __GMP_DECLSPEC __clz_tab[128];
|
||||
extern const unsigned char __GMP_DECLSPEC __clz_tab[129];
|
||||
#endif
|
||||
|
||||
#if !defined (count_trailing_zeros)
|
||||
|
@ -29,11 +29,12 @@ MA 02110-1301, USA. */
|
||||
|
||||
#ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB
|
||||
const
|
||||
unsigned char __clz_tab[128] =
|
||||
unsigned char __clz_tab[129] =
|
||||
{
|
||||
1,2,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
|
||||
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
|
||||
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
|
||||
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8
|
||||
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
|
||||
9
|
||||
};
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user