On 08/09/2015 21:02, Brian Gladman wrote: > On 08/09/2015 18:30, 'Bill Hart' via mpir-devel wrote: >> >> ---------- Forwarded message ---------- >> From: *Tomi* <notificati...@github.com <mailto:notificati...@github.com>> >> Date: 5 September 2015 at 18:24 >> Subject: [mpir] mpz.fac_ui : ERROR with x64 Release configuration on >> Visual Studio 2015 (#159) >> To: wbhart/mpir <m...@noreply.github.com <mailto:m...@noreply.github.com>> >> >> excerpts from run-tests.py script output: >> >> Testing MPIR Static Library (lib_mpir_k8_k10_k102) in Configuration >> ... >> mpz.divis_2exp : success >> mpz.export : success >> mpz.fac_ui : ERROR ( 3221225477 ) >> mpz.fdiv : success >> ... >> subc : success >> 201 tests: >> 200 ran correctly >> 1 failed >> .. completed - press ENTER >> >> (builded with Microsoft Visual C++ 2015 (Enterprise Edition) on Windows >> 7 - 64 bit) >> > > I can see this error but it won't be easy to debug as the failure > occcurs in the karatsuba multiplication code. I suspect that something > is wrong with the thresholds set in gmp-mparam.h for this architecture.
I have found the problem - there is a bug in the karasub.asm assembler used on Windows for the K10/K102 architectures. Looking at the K8/K10/K102 code in x86_64 (i.e. the GCC/Linux code) it makes sense to fix the bug by simply using K8 assembler code for the K10/K102 architectures on Windows. This fixes the bug. I have added this change to my GITHUB MPIR repository. Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To post to this group, send email to mpir-devel@googlegroups.com. Visit this group at http://groups.google.com/group/mpir-devel. For more options, visit https://groups.google.com/d/optout.