diff --git a/gmp-h.in b/gmp-h.in index e8efcdc9..97cb1193 100644 --- a/gmp-h.in +++ b/gmp-h.in @@ -2465,7 +2465,7 @@ mpn_neg_n (mp_ptr __gmp_rp, mp_srcptr __gmp_up, mp_size_t __gmp_n) ++__gmp_up; ++__gmp_rp; } - *__gmp_rp = (- *__gmp_up) & GMP_NUMB_MASK; + *__gmp_rp = (- *(mp_limb_signed_t*)__gmp_up) & GMP_NUMB_MASK; if (--__gmp_n) /* Higher limbs get complemented. */ mpn_com (++__gmp_rp, ++__gmp_up, __gmp_n); diff --git a/msvc/vs17/mpir.sln b/msvc/vs17/mpir.sln index 6b535a16..cc857bd5 100644 --- a/msvc/vs17/mpir.sln +++ b/msvc/vs17/mpir.sln @@ -1,6 +1,5 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 17 +# Visual Studio 15 VisualStudioVersion = 15.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dll_mpir_skylake_avx", "dll_mpir_skylake_avx\dll_mpir_skylake_avx.vcxproj", "{F4D1BF1B-A4AF-4B25-839A-66BF59838326}" @@ -29,44 +28,47 @@ Global Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Release|Win32.ActiveCfg = Release|Win32 - {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Release|x64.ActiveCfg = Release|x64 - {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Debug|Win32.ActiveCfg = Debug|Win32 + {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Debug|Win32.ActiveCfg = Debug|x64 {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Debug|x64.ActiveCfg = Debug|x64 - {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Release|Win32.ActiveCfg = Release|Win32 - {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Release|x64.ActiveCfg = Release|x64 - {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Debug|Win32.ActiveCfg = Debug|Win32 + {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Release|Win32.ActiveCfg = Release|x64 + {F4D1BF1B-A4AF-4B25-839A-66BF59838326}.Release|x64.ActiveCfg = Release|x64 + {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Debug|Win32.ActiveCfg = Debug|x64 {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Debug|x64.ActiveCfg = Debug|x64 - {B265237A-08C6-4BC3-A582-2B480F27C987}.Release|Win32.ActiveCfg = Release|Win32 - {B265237A-08C6-4BC3-A582-2B480F27C987}.Release|x64.ActiveCfg = Release|x64 + {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Release|Win32.ActiveCfg = Release|x64 + {9DE5D517-52BA-4344-8470-9C9CF7CFB17C}.Release|x64.ActiveCfg = Release|x64 {B265237A-08C6-4BC3-A582-2B480F27C987}.Debug|Win32.ActiveCfg = Debug|Win32 {B265237A-08C6-4BC3-A582-2B480F27C987}.Debug|x64.ActiveCfg = Debug|x64 - {C1DEEFFD-CA22-481B-9F4E-436709F9C6AE}.Release|Win32.ActiveCfg = Release|Win32 - {C1DEEFFD-CA22-481B-9F4E-436709F9C6AE}.Release|x64.ActiveCfg = Release|x64 + {B265237A-08C6-4BC3-A582-2B480F27C987}.Release|Win32.ActiveCfg = Release|Win32 + {B265237A-08C6-4BC3-A582-2B480F27C987}.Release|x64.ActiveCfg = Release|x64 {C1DEEFFD-CA22-481B-9F4E-436709F9C6AE}.Debug|Win32.ActiveCfg = Debug|Win32 {C1DEEFFD-CA22-481B-9F4E-436709F9C6AE}.Debug|x64.ActiveCfg = Debug|x64 - {2ACEC5D2-F039-4A7F-B9D6-0025BAFD667B}.Release|Win32.ActiveCfg = Release|Win32 - {2ACEC5D2-F039-4A7F-B9D6-0025BAFD667B}.Release|x64.ActiveCfg = Release|x64 + {C1DEEFFD-CA22-481B-9F4E-436709F9C6AE}.Release|Win32.ActiveCfg = Release|Win32 + {C1DEEFFD-CA22-481B-9F4E-436709F9C6AE}.Release|x64.ActiveCfg = Release|x64 {2ACEC5D2-F039-4A7F-B9D6-0025BAFD667B}.Debug|Win32.ActiveCfg = Debug|Win32 {2ACEC5D2-F039-4A7F-B9D6-0025BAFD667B}.Debug|x64.ActiveCfg = Debug|x64 - {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Release|Win32.ActiveCfg = Release|Win32 - {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Release|x64.ActiveCfg = Release|x64 + {2ACEC5D2-F039-4A7F-B9D6-0025BAFD667B}.Release|Win32.ActiveCfg = Release|Win32 + {2ACEC5D2-F039-4A7F-B9D6-0025BAFD667B}.Release|x64.ActiveCfg = Release|x64 {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Debug|Win32.ActiveCfg = Debug|Win32 - {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Debug|x64.ActiveCfg = Debug|x64 - {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Release|Win32.ActiveCfg = Release|Win32 - {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Release|x64.ActiveCfg = Release|x64 + {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Debug|x64.ActiveCfg = Debug|Win32 + {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Release|Win32.ActiveCfg = Release|Win32 + {EFF13755-28D8-46A9-A297-66ADC97E4FB4}.Release|x64.ActiveCfg = Release|Win32 {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Debug|Win32.ActiveCfg = Debug|Win32 - {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Debug|x64.ActiveCfg = Debug|x64 - {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Release|Win32.ActiveCfg = Release|Win32 - {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Release|x64.ActiveCfg = Release|x64 - {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Debug|Win32.ActiveCfg = Debug|Win32 + {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Debug|x64.ActiveCfg = Debug|Win32 + {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Release|Win32.ActiveCfg = Release|Win32 + {E26AF320-AC81-4FFC-A45E-BCEF48B0202F}.Release|x64.ActiveCfg = Release|Win32 + {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Debug|Win32.ActiveCfg = Debug|x64 {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Debug|x64.ActiveCfg = Debug|x64 - {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Release|Win32.ActiveCfg = Release|Win32 - {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Release|x64.ActiveCfg = Release|x64 - {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Debug|Win32.ActiveCfg = Debug|Win32 + {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Release|Win32.ActiveCfg = Release|x64 + {2577DCD8-678C-4A64-BCD4-57F0D18D4890}.Release|x64.ActiveCfg = Release|x64 + {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Debug|Win32.ActiveCfg = Debug|x64 {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Debug|x64.ActiveCfg = Debug|x64 + {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Release|Win32.ActiveCfg = Release|x64 + {1ABCE2FD-FAE8-4143-9A46-F54FD3E93E6E}.Release|x64.ActiveCfg = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F1571729-8239-405F-8B06-0F3FE5F50850} + EndGlobalSection EndGlobal