summaryrefslogtreecommitdiff
path: root/libm/float_wrappers.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-02 20:52:18 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-02 20:52:18 +0000
commit6ec72c25adc5231d9c12672c8da287db234e55c3 (patch)
tree860a5b5481b034529861be763c035b5a155a9d76 /libm/float_wrappers.c
parentbecdcc75f97d3d4480b9317633f0a59334a15a94 (diff)
implement carg
Diffstat (limited to 'libm/float_wrappers.c')
-rw-r--r--libm/float_wrappers.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c
index ab424d300..ffcf252ee 100644
--- a/libm/float_wrappers.c
+++ b/libm/float_wrappers.c
@@ -10,7 +10,8 @@
* GNU Lesser General Public License version 2.1 or later.
*/
-#include "math.h"
+#include <math.h>
+#include <complex.h>
/* For the time being, do _NOT_ implement these functions
* that are defined by SuSv3 */
@@ -138,6 +139,15 @@ float atanhf (float x)
#endif
+#ifdef L_cargf
+libm_hidden_proto(carg)
+float cargf (float complex x)
+{
+ return (float) carg( (double)x );
+}
+#endif
+
+
#ifdef L_cbrtf
libm_hidden_proto(cbrt)
float cbrtf (float x)