NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/51427: libm issues triggered by py-numpy



The following reply was made to PR lib/51427; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost, Thomas Klausner <wiz%NetBSD.org@localhost>
Subject: Re: lib/51427: libm issues triggered by py-numpy
Date: Tue, 30 Aug 2016 23:59:15 +0200

 On Tue, Aug 30, 2016 at 12:00:02PM +0000, coypu%SDF.ORG@localhost wrote:
 >  for example, creal(0+I*INFINITY) = NAN. I expected 0.
 
 The problem here is not so much creal(), but the construction of the
 complex number itself. For C11, we should support CMPLX and friends that
 directly take real and imaginary part as argument, but for C99 and
 before you have to construct them separately via the __real__ and
 __imag__ builtins, I think.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index