projects
/
libm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9d90c60
)
tgmath.h fixes
author
nsz
<nsz@port70.net>
Mon, 5 Mar 2012 21:25:18 +0000
(22:25 +0100)
committer
nsz
<nsz@port70.net>
Mon, 5 Mar 2012 21:25:18 +0000
(22:25 +0100)
include/tgmath.h
patch
|
blob
|
history
diff --git
a/include/tgmath.h
b/include/tgmath.h
index
08e2028
..
bdfef62
100644
(file)
--- 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) )
__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) : \
__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 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))
#define atanh(x) __tg_real_complex(atanh, (x))
#define carg(x) __tg_complex(carg, (x))
#define cbrt(x) __tg_real(cbrt, (x))