summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/noieee_src/n_atan.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libm/noieee_src/n_atan.c b/lib/libm/noieee_src/n_atan.c
index c4e6e231a87..37d1b881f48 100644
--- a/lib/libm/noieee_src/n_atan.c
+++ b/lib/libm/noieee_src/n_atan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_atan.c,v 1.12 2013/03/28 18:09:38 martynas Exp $ */
+/* $OpenBSD: n_atan.c,v 1.13 2013/07/15 04:09:44 espie Exp $ */
/* $NetBSD: n_atan.c,v 1.1 1995/10/10 23:36:36 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -83,3 +83,10 @@ atan(double x)
}
__strong_alias(atanl, atan);
+
+float
+atanf(float x)
+{
+ float one=1.0f;
+ return(atan2f(x,one));
+}