From: nsz Date: Mon, 5 Mar 2012 21:25:18 +0000 (+0100) Subject: tgmath.h fixes X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=commitdiff_plain;h=781e3284dddd0d9cc713603f4bd05442df78e09a;ds=sidebyside tgmath.h fixes --- diff --git a/include/tgmath.h b/include/tgmath.h index 08e2028..bdfef62 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -67,7 +67,7 @@ tgmath.h is broken: return type is wrong __FLTCX(x) || __FLTCX(y) ? cpowf(x, y) : \ __tg_real_2(pow, x, y) ) -#define __tg_real_complex_fabs(__fun, x) ( \ +#define __tg_real_complex_fabs(x) ( \ __LDBLCX(x) ? cabsl(x) : \ __DBLCX(x) ? cabs(x) : \ __FLTCX(x) ? cabsf(x) : \ @@ -80,7 +80,7 @@ tgmath.h is broken: return type is wrong #define asin(x) __tg_real_complex(asin, (x)) #define asinh(x) __tg_real_complex(asinh, (x)) #define atan(x) __tg_real_complex(atan, (x)) -#define atan2(x) __tg_real_2(atan2, (x), (y)) +#define atan2(x,y) __tg_real_2(atan2, (x), (y)) #define atanh(x) __tg_real_complex(atanh, (x)) #define carg(x) __tg_complex(carg, (x)) #define cbrt(x) __tg_real(cbrt, (x))