From: Roland McGrath Date: Wed, 18 Nov 1992 20:26:47 +0000 (+0000) Subject: Formerly m68k/fpu/atan2.c.~6~ X-Git-Tag: upstream/2.30~10627^2~4327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=873550204408dcae12a0d522aaa18a87e8f4d13c;p=external%2Fglibc.git Formerly m68k/fpu/atan2.c.~6~ --- diff --git a/sysdeps/m68k/fpu/atan2.c b/sysdeps/m68k/fpu/atan2.c index ee7741f..e937833 100644 --- a/sysdeps/m68k/fpu/atan2.c +++ b/sysdeps/m68k/fpu/atan2.c @@ -21,17 +21,12 @@ Cambridge, MA 02139, USA. */ #ifdef __GNUC__ -static CONST double -PIo4 = 7.8539816339744827900E-1 , /*Hex 2^ -1 * 1.921FB54442D18 */ -PIo2 = 1.5707963267948965580E0 , /*Hex 2^ 0 * 1.921FB54442D18 */ -PI = 3.1415926535897931160E0 ; /*Hex 2^ 1 * 1.921FB54442D18 */ - double DEFUN(atan2, (y, x), double y AND double x) { static CONST double one = 1.0, zero = 0.0; double signx, signy; - double pi; + double pi, PIo4, PIo2; if (__isnan(x)) return x; @@ -42,6 +37,8 @@ DEFUN(atan2, (y, x), double y AND double x) signx = __copysign(one, x); asm("fmovecr%.x %1, %0" : "=f" (pi) : "i" (0)); + PIo2 = pi / 2; + PIo4 = pi / 4; if (y == zero) return signx == one ? y : __copysign(pi, signy);