Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Saturday, October 13, 2012 12:37 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released Hi Brian, I have to go out, but ran a quick test. I get the following: libtool: compile: gcc -std=gnu99

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Bill Hart
uess misc.c needs config.h. Bill. On 13 October 2012 11:28, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Saturday, October 13, 2012 12:48 AM > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > I've repla

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Saturday, October 13, 2012 12:48 AM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released I've replaced it with a macro. The poor man's portable inline. This seems to work (after correcting a bug i

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Saturday, October 13, 2012 12:48 AM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released I've replaced it with a macro. The poor man's portable inline. This seems to work (after correcting a bug i

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
I've replaced it with a macro. The poor man's portable inline. This seems to work (after correcting a bug in my first attempt). So hopefully that bug is knocked on the head. Once Brian is happy that Windows is doing what it is supposed to, and I've removed the internal symbol conflicts with flint

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread leif
Bill Hart wrote: On 7 October 2012 04:10, leif wrote: With GCC 4.7.0 (and CFLAGS="-O0 -finline-functions -fschedule-insns", since this version is severely broken on Itanium) I get: libtool: link: ranlib .libs/libtests.a libtool: link: ( cd ".libs" && rm -f "libtests.la" && ln -s "../libtests.l

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
Ah nice. This fix of course causes all sorts of multiple symbol clashes on ia64. Back to the drawing board. Bill. On 13 October 2012 00:10, Bill Hart wrote: > I decided to just leave it where it was and define it __inline__ on > *nix and __inline on MSVC. Apparently this is not completely porta

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
legroups.com >>> Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released >>> >>> On 12 October 2012 23:06, Brian Gladman wrote: >>>> >>>> >>>> -Original Message----- From: Bill Hart >>>> Sent: Friday, October 12, 2012 10:58

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread leif
Bill Hart wrote: On 12 October 2012 23:19, Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 11:11 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released On 12 October 2012 23:06, Brian Gladman wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
I decided to just leave it where it was and define it __inline__ on *nix and __inline on MSVC. Apparently this is not completely portable, but we can deal with any issues if and when they arise. I suspect there will only be issues on machines whose vendors went out of business years ago. Bill. On

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 23:27, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 11:23 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > On 12 October 2012 23:19, Brian Gladman wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 7 October 2012 04:10, leif wrote: > With GCC 4.7.0 (and CFLAGS="-O0 -finline-functions -fschedule-insns", since > this version is severely broken on Itanium) I get: > > libtool: link: ranlib .libs/libtests.a > libtool: link: ( cd ".libs" && rm -f "libtests.la" && ln -s "../libtests.la" > "libte

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 11:23 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released On 12 October 2012 23:19, Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 11

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 23:19, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 11:11 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > On 12 October 2012 23:06, Brian Gladman wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 11:11 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released On 12 October 2012 23:06, Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 23:06, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 10:58 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > [snip] > > There are a couple more inst

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10:58 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released [snip] There are a couple more instances of _MSC_VER guards in mpirxx.h. Did you only mean to change two of them

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 22:52, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 10:46 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > [snip] > >> ===

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10:46 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released [snip] If we want a test for this we can add one to the test suite and only invoke it on

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 22:37, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 10:29 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > On 12 October 2012 22:27, Brian Gladman wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10:29 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released On 12 October 2012 22:27, Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 22:27, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 10:20 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > On 12 October 2012 22:13, Brian Gladman wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10:20 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released On 12 October 2012 22:13, Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 22:13, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 10:05 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > [snip] > >> >> I have

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 10:05 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released [snip] I have a feeling we need to go back to some underlying principles here. So for a start, intmax_t and uintmax_t on

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 21:57, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 9:45 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > [snip] > > >> Going back to stdint.

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 9:45 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released [snip] Going back to stdint.h, I think the assumption is that this needs to be included by the user before the mpirxx.h

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
iginal Message- From: Bill Hart >> Sent: Friday, October 12, 2012 9:15 PM >> >> To: mpir-devel@googlegroups.com >> Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released >> >> I believe these only get defined if you first define some macro. >> >>

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 21:22, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 9:15 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > I believe these only get defined if you fi

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
oglegroups.com >> Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released >> >> Brian Gladman wrote: >>> >>> -Original Message- From: Bill Hart >>> Sent: Friday, October 12, 2012 9:15 PM >>> To: mpir-devel@googlegroups.com >>>

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
wrote: > -Original Message- From: leif > Sent: Friday, October 12, 2012 9:32 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > Brian Gladman wrote: >> >> -Original Message- From: Bill Hart >> Sent:

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: leif Sent: Friday, October 12, 2012 9:32 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 9:15 PM To: mpir-devel

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread leif
Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 9:15 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released I believe these only get defined if you first define some macro. On 12 October 2012 21:13, leif wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 9:15 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released I believe these only get defined if you first define some macro. On 12 October 2012 21:13, leif wrote: Bill Hart wrote

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
n't work. For C++ we must include stdint.h and not >>> limits.h. >>> >>> Bill. >>> >>> On 12 October 2012 20:32, Brian Gladman wrote: >>>> >>>> -Original Message- From: Bill Hart Sent: Friday, October 12, >>>> 20

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread leif
r C++ we must include stdint.h and not limits.h. Bill. On 12 October 2012 20:32, Brian Gladman wrote: -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 8:30 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released Oh no it doesn't

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
> On 12 October 2012 20:56, Bill Hart wrote: >>> It appears to be defined in limits.h on *nix if you use C, but >>> stdint.h if you use C++. >>> >>> Bill. >>> >>> On 12 October 2012 20:55, Brian Gladman wrote: >>>> -Origi

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
Bill. >> >> On 12 October 2012 20:55, Brian Gladman wrote: >>> -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 >>> 8:44 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 >>> alpha1 released >>> Yes

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
; -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 >> 8:44 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 >> alpha1 released >> Yes, but you can't include limits.h in mpirxx.h. If you do, it will >> screw up on linux. So w

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
It appears to be defined in limits.h on *nix if you use C, but stdint.h if you use C++. Bill. On 12 October 2012 20:55, Brian Gladman wrote: > -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 > 8:44 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 8:44 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released Yes, but you can't include limits.h in mpirxx.h. If you do, it will screw up on linux. So we will just have to add some

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
On 12 October 2012 20:39, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 8:34 PM > > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > > That actually won't work. For C++ we must in

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 8:39 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released Another problem is in the test functions for the ux/sx functions, we use %lld in the format specifier for an intmax_t. This is

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 8:34 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released That actually won't work. For C++ we must include stdint.h and not limits.h. On Windows LLONG_M

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
nt.h and not limits.h. > > Bill. > > On 12 October 2012 20:32, Brian Gladman wrote: >> -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 >> 8:30 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 >> alpha1 released >> Oh

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
That actually won't work. For C++ we must include stdint.h and not limits.h. Bill. On 12 October 2012 20:32, Brian Gladman wrote: > -Original Message- From: Bill Hart Sent: Friday, October 12, 2012 > 8:30 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 8:30 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released Oh no it doesn't, I made a mistake. It has #if defined( _STDINT_H ) || defined ( _STDINT_H_ ) || defined ( _S

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
; On 12 October 2012 20:24, Bill Hart wrote: >> Yeah, I've just done it now. >> >> Bill. >> >> On 12 October 2012 20:23, Brian Gladman wrote: >>> -Original Message- From: Bill Hart >>> Sent: Friday, October 12, 2012 8:18 PM >>

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
Bill Hart >> Sent: Friday, October 12, 2012 8:18 PM >> To: mpir-devel@googlegroups.com >> >> Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released >> >> I think we should test if LLONG_MAX is defined. This actually doesn't >> tell us if long long exists, but

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
Yeah, I've just done it now. Bill. On 12 October 2012 20:23, Brian Gladman wrote: > -Original Message- From: Bill Hart > Sent: Friday, October 12, 2012 8:18 PM > To: mpir-devel@googlegroups.com > > Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released > >

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Brian Gladman
-Original Message- From: Bill Hart Sent: Friday, October 12, 2012 8:18 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released I think we should test if LLONG_MAX is defined. This actually doesn't tell us if long long exists, but tells us if long

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
I think we should test if LLONG_MAX is defined. This actually doesn't tell us if long long exists, but tells us if long long exists AND the system long long's are fully c99 compliant. Then if LLONG_MAX is not defined but MAXINT_MAX is defined and not equal to LONG_MAX, then we should define maxint

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
Whoah, we have some major issues here. mpirxx.h uses HAVE_LONG_LONG. But this is defined in MPIR's internal config.h, which is no use, as the end user will not have included this. Moreover, I can't find where stdint.h is being included in mpirxx.h. I think it must be designed so that only when it

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
Damn, I am wrong about the last bit. You can't use sizeof in preprocessor directives! But now I am looking at this code and wondering if it is even necessary. When do we expect intmax_t to not be either long or long long. And we have code for both of the above already. Bill. On 12 October 2012 1

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-12 Thread Bill Hart
I think I have essentially gotten to the bottom of this bug. And it is pretty subtle indeed! The issue is nominative versus structural typing. Consider the following two structs: struct mystruct1 { int d; double t; } struct mystruct2 { int d; double t; } Structurally, these are the

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-11 Thread Bill Hart
On 7 October 2012 04:10, leif wrote: > On Linux IA64 (SLES 10, Itanium) in contrast, I got the following failures: > > With the (fairly old) "native" GCC 4.1.2, building the testsuite fails: > > make[4]: Entering directory > `/home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.1.2/tests/cxx' > g+

Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-06 Thread leif
Bill Hart wrote: Hi all, It is with pleasure that we release MPIR 2.6.0 alpha1. The source and documentation can be downloaded at http://mpir.org/ This release contains a new FFT, support for intmax_t integers, a Python build generator and various bug fixes. The alpha version has been tested o