Re: [Numpy-discussion] Preventing lossy cast for new float dtypes ?

2012-08-20 Thread Frédéric Bastien
On Sat, Aug 18, 2012 at 9:28 AM, David Cournapeau courn...@gmail.com wrote: Hi, I have started toying with implementing a quad precision dtype for numpy on supported platforms, using the __float128 + quadmath lib from gcc. I have noticed invalid (and unexpected) downcast to long double in

[Numpy-discussion] Preventing lossy cast for new float dtypes ?

2012-08-18 Thread David Cournapeau
Hi, I have started toying with implementing a quad precision dtype for numpy on supported platforms, using the __float128 + quadmath lib from gcc. I have noticed invalid (and unexpected) downcast to long double in some cases, especially for ufuncs (e.g. when I don't define my own ufunc for a