diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2013-07-15 04:09:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2013-07-15 04:09:45 +0000 |
commit | 6bf640c9efc186f0f81dbd124c8da9e8c1b68dff (patch) | |
tree | ae32f505ade58e9d62c5a990f894c75385946753 /lib | |
parent | e422a2134de40cba1adb0d7607f874a0caebb748 (diff) |
use atan2f to add atanf
okay martynas@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/noieee_src/n_atan.c | 9 |
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)); +} |