[mpir-devel] Re: mpir3.0.0 on mpir.org or mpir-master on https://github.com/BrianGladman/mpir

2020-07-07 Thread Cactus
On Tuesday, 7 July 2020 10:41:39 UTC+1, Benjie Lu wrote: > > > Thank you for your help. I made it. The default visual studio solution >> will use windows 8.1 sdk, while I work on windows 10 with windows 10 sdk, >> there is a link error, " can not open file x64\Debug\mpn\add_err1_n.obj " . >>

[mpir-devel] Re: mpir3.0.0 on mpir.org or mpir-master on https://github.com/BrianGladman/mpir

2020-07-07 Thread Cactus
On Tuesday, 7 July 2020 06:18:09 UTC+1, Benjie Lu wrote: > > Hello , everyone, > The two zip files : 1. mpir3.0.0 on mpir.org > 2. mpir-master on > https://github.com/BrianGladman/mpir > are diffirent. And the latter seems to be compatible with the > lates

Re: [mpir-devel] FLINT and ARB using Visual Studio

2020-04-29 Thread Cactus
On Tuesday, 28 April 2020 23:49:09 UTC+1, Cactus wrote: > > On 28/04/2020 23:28, 'Bill Hart' via mpir-devel wrote: > > You may be right, but I don't see where your files are in our repo: > > > > https://github.com/wbhart/flint2 > > > >

Re: [mpir-devel] FLINT and ARB using Visual Studio

2020-04-28 Thread Cactus
On Tuesday, 28 April 2020 23:09:02 UTC+1, Cactus wrote: > > On 28/04/2020 22:48, 'Bill Hart' via mpir-devel wrote: > > They both take about 0.6s with our continuous integration. I don't know > > if @tthsqe12 would expect them to randomly hit a rea

Re: [mpir-devel] FLINT and ARB using Visual Studio

2020-04-28 Thread Cactus
On Tuesday, 28 April 2020 15:51:06 UTC+1, Cactus wrote: > > On 28/04/2020 15:44, 'Bill Hart' via mpir-devel wrote: > > > That's great news, thanks Brian. > > I fear that I have reported a complete pass too early as I missed the > fact that my test code h

Re: [mpir-devel] FLINT and ARB using Visual Studio

2020-04-21 Thread Cactus
On Tuesday, 21 April 2020 00:28:28 UTC+1, Bill Hart wrote: > > Hi Brian, > > After making these changes, our cmake continuous integration fails. I > think the problem is with this line: > > FLINT_DLL const unsigned int partitions_lookup[128]; > > Is this only relevant for MSVC? > > Bill. > Good

[mpir-devel] Re: Do I have to use CygWin or the like to install MPIR on Windows?

2019-10-07 Thread Cactus
You have two options if you wish to use MPIR on Windows. You can use the Linux repository, (https://github.com/wbhart/mpir) in which case you will need to have cygwin or mingw installed (the 32 or 64 bit versions or both depending on your needs) Or you can use the Windows repository (https

[mpir-devel] Re: Build script for MPIR with Microsoft C++

2019-08-12 Thread Cactus
On Sunday, 11 August 2019 21:52:40 UTC+1, Russell Wallace wrote: > > I've written a Python script that successfully builds MPIR on Windows with > the Microsoft compiler; in particular, it finds the latest SDK installed, > and updates the project files to specify that SDK. > > https://github.com

[mpir-devel] MPIR.NET

2019-06-06 Thread Cactus
I would like to contact Alex Dyachenco (the author of MPIR.NET) as it needs maintenance in order to work with the current MPIR Windows build. I would be grateful If Alex (or anyone else who knows his email address) could ask him to contact me (riemannic at gmail dot com). Brian Gladman

[mpir-devel] Re: Fail on mpir-3.0 build

2019-05-02 Thread Cactus
On Thursday, 2 May 2019 06:17:10 UTC+1, degski wrote: > > Good day! > > I've been trying to build mpir from repo: > https://github.com/BrianGladman/mpir . > Hi Degski, Unfortunately I am away at the moment so I am a bit limited in what I can do to help until Tuesday next week. I have tried

[mpir-devel] Testing needed on Linux/GCC

2018-08-27 Thread Cactus
In my MPIR repository at https://github.com/BrianGladman/mpir I have new Windows assembler code for Intel processors, some new function from GMP some tidying up of the source code and a major revision of the Windows build code. Although this can be used directly, a number of people have asked

[mpir-devel] Re: MPIR-3.0.0 access violation on Windows 32-bit MPIR build calling mpz_powm

2018-05-31 Thread Cactus
On Wednesday, 30 May 2018 22:21:56 UTC+1, Mike Terry wrote: > > Hi, I'm new to MPIR, and really am just playing around/familiarising > myself with what it can do at the moment. My program produced an AV when > calling mpz_powm with large exp and mod parameters. This seems to be due > to a mis

Re: [mpir-devel] Re: Can't Compile dll_mpir_gc in VS15

2018-03-06 Thread Cactus
On Tuesday, 6 March 2018 10:06:41 UTC, sisyphus wrote: > > > > -Original Message- > From: Brian Gladman > Sent: Tuesday, March 06, 2018 8:39 PM > To: mpir-...@googlegroups.com > Subject: Re: [mpir-devel] Re: Can't Compile dll_mpir_gc in VS15 > > > On 06/03/2018 09:20, sisy...@optusn

[mpir-devel] Re: Can't Compile dll_mpir_gc in VS15

2018-03-06 Thread Cactus
On Friday, 2 March 2018 19:06:03 UTC, Oluseye Akomolede wrote: > > Good afternoon, > > I am getting syntax errors when attempting to compile dll_mpir_gc on > Visual Studio 2015 community version. I have included a screenshot of the > error window. I hope that helps. Any help with this would be

[mpir-devel] Re: Can't Compile dll_mpir_gc in VS15

2018-03-02 Thread Cactus
On Friday, 2 March 2018 19:06:03 UTC, Oluseye Akomolede wrote: > > Good afternoon, > > I am getting syntax errors when attempting to compile dll_mpir_gc on > Visual Studio 2015 community version. I have included a screenshot of the > error window. I hope that helps. Any help with this would be

[mpir-devel] Length of clz_tab?

2016-07-31 Thread Cactus
I have run into an error in compiling MPFR against MPIR which is caused by the fact that clz_tab in GMP is now 129 bytes long whereas it is 128 bytes long in MPIR. It seems that this changed in GMP some time ago but we have not followed this change. Should we now follow this change? best re

[mpir-devel] MPIR/GMP compatibility of mpf/mpz get_d_2exp() functions on Windows x64

2016-06-08 Thread Cactus
The issue I am rasing here is Windows x64 specific and does not affect MPIR on other architectures. The mpir_ui and mpir_si types were introduced in MPIR to allow all x64 systems (including Windows x64) to handle 64-bit integers as the norm. This has worked well but recently one incompatibility

Re: [mpir-devel] Simplifying MSVC projects: using PropertySheets

2015-11-21 Thread Cactus
a On Saturday, 7 November 2015 22:50:22 UTC, SeVlaT wrote: > > Hi. > > This becomes an issue if people don't explicitly specify the libraries >> that they are going to use. But in our case we explicitly set up the >> correct libraries for Release and Debug so we don't make any use of the >> MSP

[mpir-devel] Re: Windows installation error running mpir_config.py

2013-12-21 Thread Cactus
On Saturday, 21 December 2013 14:47:59 UTC, Rob Bowman wrote: > > Hi, > > I'm running mpir_config.py to create a specific build target for westmere > (I chose 23) and I'm getting the error below. Can anyone help me with this > please? I tried using Python 2.7 and then uninstalled that and used

[mpir-devel] Re: Windows installation error running mpir_config.py

2013-12-21 Thread Cactus
On Saturday, 21 December 2013 14:47:59 UTC, Rob Bowman wrote: > > Hi, > > I'm running mpir_config.py to create a specific build target for westmere > (I chose 23) and I'm getting the error below. Can anyone help me with this > please? I tried using Python 2.7 and then uninstalled that and used

[mpir-devel] Re: Windows installation error running mpir_config.py

2013-12-21 Thread Cactus
On Saturday, 21 December 2013 14:47:59 UTC, Rob Bowman wrote: > > Hi, > > I'm running mpir_config.py to create a specific build target for westmere > (I chose 23) and I'm getting the error below. Can anyone help me with this > please? I tried using Python 2.7 and then uninstalled that and used

[mpir-devel] Re: Windows installation error running mpir_config.py

2013-12-21 Thread Cactus
On Saturday, 21 December 2013 14:47:59 UTC, Rob Bowman wrote: > > Hi, > > I'm running mpir_config.py to create a specific build target for westmere > (I chose 23) and I'm getting the error below. Can anyone help me with this > please? I tried using Python 2.7 and then uninstalled that and used

[mpir-devel] MPIR ToDo List

2013-08-06 Thread Cactus
This is a comment on the item: use __INTEL_COMPILER instead of INTEL_COMPILER in longlong.inc files on Bill's list of MPIR ToDo items. On Linux I believe that the defines for the "Intel compiler version" are __ICC and __INTEL_COMPILER. On WIndows the define for the "Intel compiler version" is

[mpir-devel] C++ Update

2013-04-17 Thread Cactus
I have just committed an update to MPIR's C++ header (mpirxx.h) to bring it into line with the update that Marc Glisse did for GMP some time ago (thanks Marc). While doing this I found an issue with the predefined symbol we use to detect the Intel compiler - we use INTEL_COMPILER but on Windows

Re: [mpir-devel] MPIR/GMP Incompatibility

2013-01-26 Thread Cactus
; Are they the only people using these directly? > > Bill. > > On 26 January 2013 17:15, Cactus > wrote: > > Some time ago we added mpn_redc_1 and mpn_redc_2 to MPIR and it now > turns > > out that GMP 5.1.0 has also added these BUT with different declarations. &g

[mpir-devel] MPIR/GMP Incompatibility

2013-01-26 Thread Cactus
Some time ago we added mpn_redc_1 and mpn_redc_2 to MPIR and it now turns out that GMP 5.1.0 has also added these BUT with different declarations. The GMP functions each return a carry whereas the MPIR versions do not. Should we do anything about this? Brian -- You received this messa

[mpir-devel] Re: 2.6.0 built for win32 but using 64-bit limbs

2013-01-14 Thread Cactus
On Monday, 14 January 2013 22:25:11 UTC, MJ Michaels wrote: > On Monday, January 14, 2013 4:44:44 PM UTC-5, Cactus wrote: > > On Monday, 14 January 2013 18:37:16 UTC, MJ Michaels wrote: > > Is it possible to configure the VC10 build in MPIR 2.6.0 to generate > 64-bit limbs

[mpir-devel] Re: 2.6.0 built for win32 but using 64-bit limbs

2013-01-14 Thread Cactus
On Monday, 14 January 2013 18:37:16 UTC, MJ Michaels wrote: > Is it possible to configure the VC10 build in MPIR 2.6.0 to generate > 64-bit limbs? I am able to do this, but have to edit mpir.h by hand to get > it to work, and I'm wondering if there's just some build option that I'm > missing.

[mpir-devel] Re: MPIR switch to using Git

2012-11-25 Thread Cactus
On Sunday, 25 November 2012 21:25:14 UTC, Bill Hart wrote: > > Hi all, > > I have just finished creating a Git repository for MPIR on GitHub: > > https://github.com/wbhart/mpir > > We will be using Git very much like SVN, to simplify things for SVN > users until they get used to the more adva

[mpir-devel] MPIR and MPFR Binary Distribution

2012-11-02 Thread Cactus
I came across this site: http://www.ospv.com/mpir-and-mpfr/ which seems to be distributing MPIR (and MPFR) in binary form without giving any references to where the source code can be found. I may be wrong but it seems to me that this does not comply with our GPL license. Does anyone else hav

[mpir-devel] GMP-ECM and MPIR 2.6.0

2012-10-15 Thread Cactus
I have created a patch for GMP-ECM (the SVN version) that allows it to be built with MPIR-2.6.0 and Bill's New FFT. A patch giving the changes needed is attached. If you are able to tests it, please report any successes and failures here. Brian -- You received this message because you

[mpir-devel] Re: MPIR 2.6.0-alpha2 released

2012-10-15 Thread Cactus
On Monday, 15 October 2012 00:43:27 UTC+1, Bill Hart wrote: > > Hi all, > > I've released MPIR-2.6.0 alpha2 on our website http://mpir.org/ > > This should fix the issues discovered in the first alpha. > > I've tested on a K10-2 and ia64. Any other build reports, test reports > or results of

[mpir-devel] Possible Issue with the Windows command lIne build?

2012-09-28 Thread Cactus
As far as I can tell, the Windows command line build relies on a file (cfg.h) in each of the mpn assembler directories. This file holds a list of the assembler files in the directory But there is a potential problem here because these cfg.h files are built only when the Visual Studio build for

Re: [mpir-devel] Re: MPIR 2.6 release progress

2012-09-27 Thread Cactus
On Thursday, 27 September 2012 16:43:55 UTC+1, Bill Hart wrote: > More bad news. > > The filename > > mpir-2.5.1/build.vc10/mpir-tests/fft.fft_ifft_mfa_truncate_sqrt2/fft.fft_ifft_mfa_truncate_sqrt2.vcxproj > > > is apparently too long, so we cannot create a tarball of MPIR. > > How do we w

[mpir-devel] Re: Missing __GMP_MP_RELEASE macro

2012-09-01 Thread Cactus
On Saturday, 1 September 2012 12:28:25 UTC+1, Volker Braun wrote: > > No I really meant __GMP_MP_RELEASE! Though that might be a good question > to ask the GMP developers. In any case, see > > http://gmplib.org/list-archives/gmp-commit/2010-January/000283.html > > for the commit. > > That is od

[mpir-devel] Re: Missing __GMP_MP_RELEASE macro

2012-09-01 Thread Cactus
On Monday, 27 August 2012 00:52:32 UTC+1, Volker Braun wrote: > > Starting with GMP 5.0.1 the version can also be gotten from the following > macro in gmp.h (autogenerated from gmp-h.in): > > #define __GMP_MP_RELEASE (__GNU_MP_VERSION * 1 + > __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_

[mpir-devel] Re: MPIR 2.6 release progress

2012-07-20 Thread Cactus
> We are probably ready to merge the MPIR-EXP branch into trunk but this > will mean that there will be a (hopefully) short period during which the > trunk won't build correctly. > To minimise this period, it will be necessary to coordinate changes to the > source code and to Windows Visu

Re: [mpir-devel] Re: MPIR.2.5.1 shared library using mingw64

2012-06-10 Thread Cactus
On Sunday, 10 June 2012 19:49:37 UTC+1, Jason Moxham wrote: > > On Sunday, 10 June 2012 17:15:09 UTC+1, Jason Moxham wrote: > > > > > > > Hi > > > > > > I figured out what going on here , basically configure is failing to > > > populate config.h with the required > > > #define HAVE_NATIVE_

Re: [mpir-devel] Re: MPIR.2.5.1 shared library using mingw64

2012-06-10 Thread Cactus
On Sunday, 10 June 2012 17:15:09 UTC+1, Jason Moxham wrote: > > > > Hi > > > > I figured out what going on here , basically configure is failing to > > populate config.h with the required > > #define HAVE_NATIVE_mpn_addmul_2 1 > > and all the others , it has always done this on mingw64 but b

[mpir-devel] Re: Windows 7 x64 and VS2010 Professional

2012-03-27 Thread Cactus
On Tuesday, March 27, 2012 5:38:46 PM UTC+1, michael85 wrote: > > Hi Brian, > > Thank you for the insightful comments, but your statement regarding the > code not being suitable for cryptographic use is quite disappointing for > me. Indeed, it looks discouraging to try and implement the require

[mpir-devel] Re: Windows 7 x64 and VS2010 Professional

2012-03-27 Thread Cactus
On Tuesday, March 27, 2012 2:38:57 PM UTC+1, michael85 wrote: > > Hello, > > I have started working on a client server system in C++ for privacy > preserving signal processing applications. Since this system will rely on > certain public key cryptography primitives, I decided to try and implemen

[mpir-devel] Re: Help on code please

2012-02-27 Thread Cactus
On Friday, February 24, 2012 5:56:38 AM UTC, inkyvoyd wrote: > > Hello, > My email is \aile\cwu\@gm\ail.co\m (without the backslashes). I also > only work with Windows because I believe that most parts of Linux are > much too technical for me to understand. I don't really understand how > to M

[mpir-devel] Re: Help on code please

2012-02-23 Thread Cactus
Yes, I can help you via email if you can let me have an email address (or if you know mine). But I can only help on Windows as I don't use Linux for development. Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion

[mpir-devel] Re: Help on code please

2012-02-23 Thread Cactus
Hello, Welcome to mpir-devel! The first thing that I can say is that MPIR on its own is not the best application to use for multiple precision floating point applications. The mpf functions work but they have now been superseded by another package called MPFR (see www.mpfr.org) that provides

Re: [mpir-devel] Updates to the MPIR-EXP branch

2012-01-24 Thread Cactus
On Tue, 24 Jan 2012 07:37:09 -0800 Case Van Horsen > On Tue, Jan 24, 2012 at 5:59 AM, Cactus wrote: > >> To reinforce that these new types are MPIR specific, should they > >> be called mpir_ui/mpir_si? > > > > I had exactly the same idea a few days ago - I

Re: [mpir-devel] Updates to the MPIR-EXP branch

2012-01-24 Thread Cactus
> To reinforce that these new types are MPIR specific, should they be called mpir_ui/mpir_si? I had exactly the same idea a few days ago - I am inclined to do this. Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussi

Re: [mpir-devel] Updates to the MPIR-EXP branch

2012-01-24 Thread Cactus
> To reinforce that these new types are MPIR specific, should they be called mpir_ui/mpir_si? I had exactly the same idea a few days ago - I am inclined to go this. Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussi

Re: [mpir-devel] Updates to the MPIR-EXP branch

2012-01-24 Thread Cactus
Hi Case, I think the ability to build using any of the compilers you mention would be a good addition. Jason maintains the command line build so the changes would need to go to him. MPFR builds with mpir-exp and all tests pass. MPC also builds with mpir-exp but one test currently fails due

[mpir-devel] Re: FFT wrapper done

2012-01-21 Thread Cactus
The FFT tuning appears to work in Windows but if I turn on asserts I see the same problem that Jason reported earlier. But I don't see the out of memory problem. Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion

[mpir-devel] Re: FFT wrapper done

2012-01-20 Thread Cactus
Great work Jason! I got quite a few of these out of memory issues in my testing of the new FFT. It probably occurs when one of the recursive FFT routines is entered with the length (n) set to zero, which causes an 'infinite' recursion. This (n == 0) is not supposed to happen. If you can sen

Re: [mpir-devel] I've compiled MPIR on Visual Studio 2010; now what?

2012-01-20 Thread Cactus
It is also worth mentioning that the output location has changed if the version in the SVN is being used. As you say, the lib and dll output directories used to be subdirectories of mpir\build.vc10. But in the SVN (and future versions of MPIR) the output directories lib, dll and bin are subd

Re: [mpir-devel] Re: FFT wrapper done

2012-01-19 Thread Cactus
Thanks Jason, Right now the source code files for the mpn_* routines provide the interface to the new FFT are in the fft subdirectory. Does this matter - should I move them to the mpn\generic subdirectory? I don't expect these to be subject to assembler code overrides but there may be other

[mpir-devel] Updates to the MPIR-EXP branch

2012-01-19 Thread Cactus
I have corrected a minor bug and made several cosmetic updates to the MPIR-EXP branch. If Case can let me have the updates needed for the mpir-exp command line build, I will add these to the SVN. The only major outstanding issue (apart from as much application level testing as possible) is to

Re: [mpir-devel] Re: FFT wrapper done

2012-01-19 Thread Cactus
Thanks for the testing. You are right - the t-locale.c test failure is not a major concern. Has anyone tested a Linux build for the mpir-exp branch? Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web v

[mpir-devel] Re: Compiler warnings

2012-01-17 Thread Cactus
This would be a desirable objective but I have never seen it as feasible because I get thousands of warnings when I set the maximum warning level. Going through each of these, analysing them and deciding what to do about each of them would involve a large amount of work and I doubt that we eith

Re: [mpir-devel] Re: FFT wrapper done

2012-01-16 Thread Cactus
Bill found the problem with the FFT code and I have now uploaded the fix to the mpir-exp branch in the MPIR repository. This fixes the problem for me but I would be grateful if you could check it out. Thanks for helping to test this branch. Do you have any applications that will exercise t

Re: [mpir-devel] Re: FFT wrapper done

2012-01-15 Thread Cactus
Thanks Case - I can reproduce the problem and I will do some work on it with Bill and get a fix as soon as possible. Is this the only test that fails? Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web

Re: [mpir-devel] Re: FFT wrapper done

2012-01-15 Thread Cactus
You are right, the file is not in the SVN. My apologies for this - I assumed that a file in the SVN could be renamed and would stay in the SVN but it doesn't seem so. I've now uploaded it and corrected the other problem you found as well. Brian -- You received this message because you

[mpir-devel] Re: FFT wrapper done

2012-01-15 Thread Cactus
Thanks for trying this Case - I appreciate your efforts. Unfortunately I don't use Jason's command line build but since it all works in Visual Studio, I would guess that it must be something missing in this build. If it is possible to check all the files that are compiled into the build, it

[mpir-devel] 64-bit integer support in MPIR on Windows x64

2012-01-10 Thread Cactus
For some weeks now I have had an early version of an MPIR for WIndows x64 in which the GMP/MPIR integer interface (the ui/si functions) uses 64-bit integers rather than the 32-bit longs that would normally be used. This version is available in the mpir-exp branch of the MPIR subversion reposit

[mpir-devel] Re: FFT wrapper done

2012-01-10 Thread Cactus
Bill's new FFT code is now fully integrated into the mpir-exp branch of the MPIR repository. It passes all tests but it has not been properly tuned yet. I have not stripped out the old FFT code and the old and new FFT can be compared by building MPIR with the define OLD_FFT set if timings for t

Re: [mpir-devel] Re: mpir-2.5.0-rc2 released

2012-01-04 Thread Cactus
I would prefer not to document the python build in this release as it is only experimental at the moment. The definitive version is the one I am working on in the mpir-exp directory in SVN and I don't guarantee that the version in trunk will work.. For the next release I am working on a new Wind

[mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
exe!fft_truncate1_twiddle(ii=649f90, is=8, n=0, w=000100, t1=2ef878, t2=2ef898, ws=1, r=0, c=0, rs=20, trunc=0) Line 113 exe!fft_truncate1_twiddle(ii=649f90, is=8, n=1, w=80, t1=2ef878, t2=2ef898, ws=1, r=0, c=0, rs=10, trunc=0) Line 123 exe!fft_truncate1_twiddle(ii=649f90, is=8, n=

[mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
mul_mfa_truncate_sqrt2(r1=648810, i1=648090, n1=78, i2=648450, n2=78, depth=7, w=1) fft_mfa_truncate_sqrt2_outer(ii=649f90, n=80, w=1, t1=2ef878, t2=2ef898, temp=2ef8b8, n1=8, trunc=100) fft_truncate1_twiddle(ii=649f90, is=8, n=10, w= 8, t1=2ef878, t2=2ef898, ws=1, r=0, c=0, rs=1, trunc=0) fft_t

Re: [mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
The twiddle code is entered with n = 0 from the above sequence both when n = 1 and also when trunk = 0 and n = 0. Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web visit https://groups.google.com/d

Re: [mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
This is one sequence IN fft_mfa_truncate_sqrt2.c that ends with entry to the failing code with n = 0. void fft_truncate1_twiddle(mp_limb_t ** ii, mp_size_t is, mp_size_t n, mp_bitcnt_t w, mp_limb_t ** t1, mp_limb_t ** t2, mp_size_t ws, mp_size_t r, mp_size_t c, mp_size_t rs, mp_size_t

Re: [mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
I think I have found the problem. Both fft_radix2_twiddle and ifft_radix2_twiddle don't guard against entry with n = 0. I changed the first part of both routines according to the template: if (n < 2) { mp_size_t tw1, tw2; tw1 = r*c; tw2 = tw1 + rs*c; if(n)

Re: [mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
I think I have found the problem. Both ifft_radix2_twiddle and ifft_radix2_twiddle don't guard against entry with n = 0. I changed the first part of both routines according to the template: if (n < 2) { mp_size_t tw1, tw2; tw1 = r*c; tw2 = tw1 + rs*c; if(n)

Re: [mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
Thanks Bill, So the test failure matters - I was hoping that it didn't :-) My laptop, which I am using right now, has 4GB of RAM - I am not clear whether it is the stack or the heap that overflows but I suspect the former. On another issue, how do I actually integrate the new FFT with MPIR?

Re: [mpir-devel] Re: FFT progress

2012-01-03 Thread Cactus
I am using the version you refer to above. As far as I can see, the test t-mul_mfa_truncate_sqrt2 does end up calling fft_radix2_twiddle via this call sequence: mul_mfa_truncate_sqrt2(r1, i1, int_limbs, i2, int_limbs, depth, w); fft_mfa_truncate_sqrt2_outer(ii, n, w, &t1, &t2, &s1, sqrt,

[mpir-devel] Re: FFT progress

2012-01-02 Thread Cactus
Only one test now fails: mul_mfa_truncate_sqrt2 It runs out of memory after a huge number of recursive calls to fft_radix2_twiddle Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web visit https://gr

[mpir-devel] Re: FFT progress

2012-01-02 Thread Cactus
I think the FLINT64 define is a potential issue. Should the FFT work with MPIR's longlong.h What should I do about flint_clz_tab? I have removed all references to the include file 'ulong_extras.h' - maybe this is needed somewhere (although everything builds without it).. Brian -- You

Re: [mpir-devel] Re: FFT progress

2012-01-02 Thread Cactus
The split/combine works in win32 so this is, as you suggest, the old 32/64 bit integer problem. I couldn't test the other tow failures in win32 as they require gmpn_addsub_n which ends up as an undefined symbol in the 32-bit builds that I can use. I have not yet done the malloc conversions so

[mpir-devel] Re: FFT progress

2012-01-02 Thread Cactus
I have got the FFT building on Windows but three of the tests fail in x64: mul_mfa_truncate_sqrt2error in limb 0, ea987380 != aa987380 mul_truncate_sqrt2error in limb 0, ea987380 != aa987380 split/combine_bitsFAIL: Error in limb 2, 1002153456 != 1520 I'm not sure how to debug these as

[mpir-devel] Re: FFT progress

2012-01-02 Thread Cactus
Fantastic work Bill - it offers a really substantial speed up and is hence something we should add to MPIR as soon as you feel it is ready. >From your list of changes needed for moving it into MPIR, it seems that almost all are search/replace operations - is it always obvious where TMP_MARK sho

[mpir-devel] Re: binomial calculation wrong?

2011-12-31 Thread Cactus
The bug is in your mpir_bincoef subroutine where you use a routine that returns a double as follows: ret = mpz_get_d(result); to set a 64-bit value in ret: Since a double on Windows has a 53 bit mantissa, this will give wrong values for 64-bit values with longer bit lengths than this. If y

Re: [mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-19 Thread Cactus
I have just found an easy solution for the CRLF issue. It occurred to me that the SVN automatic translation has to check file types in order to avoid messing up binary files. I looked at this and it turns out that the SVN configuration file contains a list of file extensions that specify whi

Re: [mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-19 Thread Cactus
Hi David Thank you for your efforts and for finding the bad declaration _mpq_cmp_ui, which I will shortly correct in the SVN. THe CRLF vs LF issue is a nuisance but I don't really know what can be done about it. This is not the first time the issue has arisen - Jason and I spent some time w

Re: [mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-19 Thread Cactus
Hi Rob, The need to use this mpir.h version was only a temporary measure, one that is no longer necessary with the SVN version of mpir-exp. The Visual Studio build doesn't use the Unix/Linux build infrastructure and the original mpir-exp version that I supplied via a link did not build mpir.h

[mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-18 Thread Cactus
Hi David, I only support Visual Studio builds so I am afraid that we need someone who uses the cyggwin/mingw/mingw64 builds to help you with this. I have just done a fairly major update to mpir-exp in SVN but I don't think this will help with your problem. For others I do recommend that this r

[mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-16 Thread Cactus
I have now added this to the MPIR SVN as the branch mpir-exp (with some updates). Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/mpir-devel/-/8OC82UM7kMcJ. To

[mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-16 Thread Cactus
Jason has kindly put a link to my experimental version of MPIR here: -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/mpir-devel/-/53Zmu_QIfGMJ. To post to this group, send

[mpir-devel] Re: MPIR support for 64-bit integers on Windows

2011-12-14 Thread Cactus
I have now got a version of MPIR in which it is possible to set the types of the integers that are used in all the ui/si functions. As usual it was harder than I expected to get this to work but it now passes all the tests on win32 and x64 systems with the integer sizes set to be equal to the

[mpir-devel] Re: [sage-windows] Re: Cygwin attempt with sage-4.8.alpha3

2011-12-03 Thread Cactus
I can only comment on the MSVC Windows build, for which I believe mpir.h is identical DLL and static library builds. To double check this I have just built both and compared the two mpir.h files that were generated. In fact mpir.h is now identical for win32 and x64 builds as well since I chan

[mpir-devel] Windows Build Change

2011-11-21 Thread Cactus
I have made a change to the Windows MPIR build which avoids the increasing problem caused by the fact that the include file mpir,h is currently different for win32 and x64 builds. This has made it only too easy to use the wrong version with the result that the build fails or, worse, is wrongl

[mpir-devel] Re: Compiling MPIR with Visual Studio 11 Developer Preview...

2011-11-07 Thread Cactus
I pleased it's now working for you. I'm happy to help further if necessary. Its quite hard to make the whole build process completely automatic and fully parallel. This would involve a lot of work, which means it probably won't happen unless someone volunteers to do it. The IDE build as it is

[mpir-devel] Re: Compiling MPIR with Visual Studio 11 Developer Preview...

2011-11-07 Thread Cactus
The "file is being used by another process" message is because several builds are running at the same time. If you want to build all the projects, it is safer to configure the IDE not to use parallel builds. This should avoid the problem you are seeing. -- You received this message becaus

[mpir-devel] Re: Compiling MPIR with Visual Studio 11 Developer Preview...

2011-11-07 Thread Cactus
Hi Steve, I have just installed the Visual Studio Developer Preview 11. Note that, in addition to installing Visual Studio 11, the YASM assembler -- vsyasm.exe -- has to be copied into the directory holding the VC++ version 11 binaries. After the automatic upgrade of the version 10 build files

[mpir-devel] Re: Compiling MPIR with Visual Studio 11 Developer Preview...

2011-11-06 Thread Cactus
I think it would be useful to find out why GMP_NAIL_BITS is not being defined. It appears to be because the section I referenced is not being included when I think it should be. It would be useful to put the ! marks back in but this won't work because the file is being generated from gmp-h.in

[mpir-devel] Re: Compiling MPIR with Visual Studio 11 Developer Preview...

2011-11-06 Thread Cactus
It looks like the script that creates mpir.h is not working properly. Do you have something like the following early in mpir.h? #if ! defined (__GMP_WITHIN_CONFIGURE) #define __GMP_BITS_PER_MP_LIMB 64 #define GMP_LIMB_BITS 64 #define GMP_NAIL_BITS

[mpir-devel] Re: MPIR 2.4.0 binaries

2011-11-03 Thread Cactus
We don't provide binaries but you can build MPIR with Visual C++ Express 2010. However, the VC++ Express installation on its own only provides for 32-bit (win32) builds. If you want to build MPIR for native 64-bit Windows (x64), you will also need to install the Windows 7.1 SDK Bri

Re: [mpir-devel] MPIR support for 64-bit integers on Windows

2011-10-25 Thread Cactus
All the Windows x64 MPN assembler code now handles 64-bit integers (this was not always the case). -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/mpir-devel/-/Ju8pBgZqrNEJ

[mpir-devel] MPIR support for 64-bit integers on Windows

2011-10-25 Thread Cactus
The issue of 32/64-bit integers on Windows comes up regularly and, after the recent discussion, I have been wondering if there is a relatively easy implementation strategy. Since we already know from 64-bit Unix/Linux distributions that the existing *_ui and *_si functions work when signed and

[mpir-devel] Re: C++ wrappers don't support 64-bit integers (size_t, long long int) on Win64

2011-10-24 Thread Cactus
You are right - size_t is supposed to be 64-bits on Windows x64. But to get this behaviour, you have to define _WIN64 during the build process. I have been caught by this so many times because _WIN64 is supposed to be a predefined macro, onr that is automatically defined for 64-bit builds.

[mpir-devel] Re: C++ wrappers don't support 64-bit integers (size_t, long long int) on Win64

2011-10-24 Thread Cactus
As you have correctly surmise, solving this requires a full rewrite of about 50 functions in the underlying C library, all of which are written in a way that will use 32-bit integer types on Windows. This is a large undertaking and, so far, nobody has been willing to embark on this. With enoug

[mpir-devel] Re: C++ wrappers don't support 64-bit integers (size_t, long long int) on Win64

2011-10-24 Thread Cactus
Following up my earlier response, size_t on Windows x64 is a 32-bit integer so the test program you used won't use a 64-bit integer. To obtain 64-bit integers you can use intmax_t and uintmax_t I found it easy to add a 64-bit constructor to mpirxx.h (NOT gmpxx.h) and this program then gives t

[mpir-devel] Re: C++ wrappers don't support 64-bit integers (size_t, long long int) on Win64

2011-10-24 Thread Cactus
This is a well known issue that derives from a fundamental incompatibility between the data models used by GMP (and MPIR) and Windows x64. GMP and MPIR use the LP64 model whereas Windows x64 uses the LLP64 model - in consequence integers and longs on Windows x64 integers are 32-bits whereas i

[mpir-devel] Re: Is the gmplib.org site blocking some IP addresses?

2011-09-29 Thread Cactus
Thanks William, I can see this messaage. I have been checking this issue with three simultaneuos connections, one through Tor, one through a neigbours IP address and one using my own IP address. Only my IP adrees is being blocked so I am pretty confident that the site has been set up to blo

[mpir-devel] Is the gmplib.org site blocking some IP addresses?

2011-09-29 Thread Cactus
I had an interesting issue come up yesterday, and I wondered if it impacts just me or whether others might have the same problem? I had a colleague visit yesterdday and he was trying to access the gmplib.org site using my internet connection withoout success. As I never have any problems ac

[mpir-devel] Re: MPFR_C++ mpir2.4.0 Help wanted

2011-09-28 Thread Cactus
Hi Ludo, It is hard to help you as I am using the latest versions of MPIR, MPFR and MPFRC++ with Visual Studio 2010. I am wondering why you have not upgraded from VC++ Express 2005 to VC++ Express 2010? If it is failing only in the linking step, maybe you have not added mpir.lib and/or mpf

  1   2   3   4   5   6   7   >