From cfb32a6c81a6ca19115ab40bdfb5329cd0fffea8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 19 Oct 1998 16:05:36 +0000 Subject: [PATCH] Update. 1998-10-19 18:59 -0400 Zack Weinberg * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val. (atan2): Takes two arguments. --- ChangeLog | 5 +++++ math/tgmath.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 410a657..13e3a17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-10-19 18:59 -0400 Zack Weinberg + + * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val. + (atan2): Takes two arguments. + 1998-10-19 Ulrich Drepper * include/ldsodefs.h: New file. diff --git a/math/tgmath.h b/math/tgmath.h index b95d55b..76513f7 100644 --- a/math/tgmath.h +++ b/math/tgmath.h @@ -83,11 +83,11 @@ : Fct##f (Val1, Val2, Val3)))) # define __TGMATH_UNARY_REAL_IMAG(Val, Fct, Cfct) \ - (__extension__ (sizeof (__real__ (val)) > sizeof (double) \ + (__extension__ (sizeof (__real__ (Val)) > sizeof (double) \ ? (sizeof (__real__ (Val)) == sizeof (Val) \ ? Fct##l (Val) \ : Cfct##l (Val)) \ - : (sizeof (__real__ (val)) == sizeof (double) \ + : (sizeof (__real__ (Val)) == sizeof (double) \ ? (sizeof (__real__ (Val)) == sizeof (Val) \ ? Fct (Val) \ : Cfct (Val)) \ @@ -138,7 +138,7 @@ /* Arc tangent of X. */ #define atan(Val) __TGMATH_UNARY_REAL_IMAG (Val, atan, catan) /* Arc tangent of Y/X. */ -#define atan2(Val) __TGMATH_UNARY_REAL_ONLY (Val, atan2) +#define atan2(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, atan2) /* Cosine of X. */ #define cos(Val) __TGMATH_UNARY_REAL_IMAG (Val, cos, ccos) -- 2.7.4