[Numpy-discussion] np.longlong casts to int

Francesc Alted francesc at continuum.io
Thu Feb 23 07:06:48 EST 2012


On Feb 23, 2012, at 5:43 AM, Nathaniel Smith wrote:

> On Thu, Feb 23, 2012 at 11:40 AM, Francesc Alted <francesc at continuum.io> wrote:
>> Exactly.  I'd update this to read:
>> 
>> float96    96 bits.  Only available on 32-bit (i386) platforms.
>> float128  128 bits.  Only available on 64-bit (AMD64) platforms.
> 
> Except float96 is actually 80 bits. (Usually?) Plus some padding…

Good point.  The thing is that they actually use 96 bit for storage purposes (this is due to alignment requirements).

Another quirk related with this is that MSVC automatically maps long double to 64-bit doubles:

http://msdn.microsoft.com/en-us/library/9cx8xs15.aspx

Not sure on why they did that (portability issues?).

-- Francesc Alted






More information about the NumPy-Discussion mailing list