[Python-checkins] CVS: python/dist/src/Objects complexobject.c,2.43,2.44

Martin v. L?wis loewis@users.sourceforge.net
Thu, 06 Sep 2001 01:16:19 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv17190/Objects

Modified Files:
	complexobject.c 
Log Message:
Revert parts of patch #453627, documenting the resulting test failures
instead.


Index: complexobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/complexobject.c,v
retrieving revision 2.43
retrieving revision 2.44
diff -C2 -d -r2.43 -r2.44
*** complexobject.c	2001/09/05 14:45:54	2.43
--- complexobject.c	2001/09/06 08:16:17	2.44
***************
*** 27,46 ****
  #define PREC_STR	12
  
- #ifdef SCO_ATAN2_BUG
- /*
-  * UnixWare 7+ is known to have a bug in atan2 that will return PI instead
-  * of ZERO (0) if the first argument is ZERO(0).
-  */
- static double atan2_sco(double x, double y)
- {
- 	if (x == 0.0)
- 		return (double)0.0;
- 	return atan2(x, y);
- }
- #define ATAN2	atan2_sco
- #else
- #define ATAN2	atan2
- #endif
- 
  /* elementary operations on complex numbers */
  
--- 27,30 ----
***************
*** 155,159 ****
  		vabs = hypot(a.real,a.imag);
  		len = pow(vabs,b.real);
! 		at = ATAN2(a.imag, a.real);
  		phase = at*b.real;
  		if (b.imag != 0.0) {
--- 139,143 ----
  		vabs = hypot(a.real,a.imag);
  		len = pow(vabs,b.real);
! 		at = atan2(a.imag, a.real);
  		phase = at*b.real;
  		if (b.imag != 0.0) {