Re: Need for GMP 5.0.5

2012-03-27 Thread Torbjorn Granlund
bodr...@mail.dm.unipi.it writes: For future releases, it might be interesting to just have a single code for processor recognition; instead of two. Do you think it would be possible? You mean the code in config.guess/configure.in and mpn/x86{,_64}/fat/fat.c? It would be desirable to avoi

Re: Need for GMP 5.0.5

2012-03-27 Thread bodrato
Ciao, Il Mar, 27 Marzo 2012 6:31 pm, Torbjorn Granlund ha scritto: > I believe we will need a GMP 5.0.5 release. > > (1) GMP 5.0.4 recognises AMD 11h processors as 10h (aka K10), then > (2) GMP 5.0.4 fails to recognise newer Intel sandybridge processors due > Any other urgent changes needed? No

Need for GMP 5.0.5

2012-03-27 Thread Torbjorn Granlund
I believe we will need a GMP 5.0.5 release. (1) GMP 5.0.4 recognises AMD 11h processors as 10h (aka K10), then making use of the LZCNT instruction. Unfortunately, 11h processors while later than 10h processors, don't implement all K10 instructions, and also don't raise an illegal inst

Re: ABS_CAST

2012-03-27 Thread Marc Glisse
On Tue, 27 Mar 2012, Niels Möller wrote: I had a look at the ABS_CAST macro introduced a while ago, #define ABS_CAST(T,x) ((x) >= 0 ? (T)(x) : -((T)((x) + 1) - 1)) As I understand it, the point is that, e.g., int x; unsigned absx; ... absx = ABS_CAST (unsigned, x); should give the righ

ABS_CAST

2012-03-27 Thread Niels Möller
I had a look at the ABS_CAST macro introduced a while ago, #define ABS_CAST(T,x) ((x) >= 0 ? (T)(x) : -((T)((x) + 1) - 1)) As I understand it, the point is that, e.g., int x; unsigned absx; ... absx = ABS_CAST (unsigned, x); should give the right result for x = INT_MIN (where plain A