* libm/complex/cacos.c: Use temporaries and correct sequencing
error in previous reordering change.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2011-07-13  Hans-Peter Nilsson <hp@axis.com> | ||||||
|  |  | ||||||
|  | 	* libm/complex/cacos.c: Use temporaries and correct sequencing | ||||||
|  | 	error in previous reordering change. | ||||||
|  |  | ||||||
| 2011-06-25  Andreas Becker  <becker@se-elektronic.de> | 2011-06-25  Andreas Becker  <becker@se-elektronic.de> | ||||||
|  |  | ||||||
| 	* libc/time/mktime.c (mktime): Lock global timezone info while | 	* libc/time/mktime.c (mktime): Lock global timezone info while | ||||||
|   | |||||||
| @@ -82,8 +82,18 @@ cacos(double complex z) | |||||||
| { | { | ||||||
| 	double complex w; | 	double complex w; | ||||||
|  |  | ||||||
|  | 	/* FIXME: The original NetBSD code results in an ICE when trying to | ||||||
|  | 	   build this function on ARM/Thumb using gcc 4.5.1.  For now we use | ||||||
|  | 	   a hopefully temporary workaround. */ | ||||||
|  | #if 0 | ||||||
| 	w = casin(z); | 	w = casin(z); | ||||||
| 	w = M_PI_2 - creal(w); | 	w = (M_PI_2 - creal(w)) - cimag(w) * I; | ||||||
| 	w -= (cimag(w) * I); | #else | ||||||
|  | 	double complex tmp0, tmp1; | ||||||
|  |  | ||||||
|  | 	tmp0 = casin(z); | ||||||
|  | 	tmp1 = M_PI_2 - creal(tmp0); | ||||||
|  | 	w = tmp1 - (cimag(tmp0) * I); | ||||||
|  | #endif | ||||||
| 	return w; | 	return w; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user