NetBSD-Bugs archive

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

PR/51427 CVS commit: src/lib/libm/complex



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

From: "Maya Rashish" <maya%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/51427 CVS commit: src/lib/libm/complex
Date: Sat, 31 Dec 2016 20:01:15 +0000

 Module Name:	src
 Committed By:	maya
 Date:		Sat Dec 31 20:01:15 UTC 2016
 
 Modified Files:
 	src/lib/libm/complex: csqrt.c csqrtf.c
 
 Log Message:
 csqrt has a branch cut on the negative real axis, and this requires
 delicacy in order to maintain continuity around it.
 
 we have an initial case to deal with a fairly common case: getting
 a real number. Avoid dealing with the branch cut in this case by
 checking if the real part is negative.
 
 later, -0.0 < 0 is not met, so instead, test for a negative number
 using signbit, so negative zero is also treated as a negative number.
 
 Fixes last part of PR lib/51427: libm issues triggered by py-numpy
 
 ok riastradh
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/lib/libm/complex/csqrt.c
 cvs rdiff -u -r1.1 -r1.2 src/lib/libm/complex/csqrtf.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index