Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/noieee_src Provide (very stupid) versions of atanf(...



details:   https://anonhg.NetBSD.org/src/rev/9a63915b161c
branches:  trunk
changeset: 791587:9a63915b161c
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Nov 24 14:41:53 2013 +0000

description:
Provide (very stupid) versions of atanf(), asinf() and acosf()

diffstat:

 lib/libm/noieee_src/n_asincos.c |  14 +++++++++++++-
 lib/libm/noieee_src/n_atan.c    |  10 +++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r a76412c43cdb -r 9a63915b161c lib/libm/noieee_src/n_asincos.c
--- a/lib/libm/noieee_src/n_asincos.c   Sun Nov 24 13:13:12 2013 +0000
+++ b/lib/libm/noieee_src/n_asincos.c   Sun Nov 24 14:41:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: n_asincos.c,v 1.7 2003/08/07 16:44:50 agc Exp $        */
+/*     $NetBSD: n_asincos.c,v 1.8 2013/11/24 14:41:53 martin Exp $     */
 /*
  * Copyright (c) 1985, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -103,6 +103,12 @@
 
 }
 
+float
+asinf(float x)
+{
+       return (float)asin(x);
+}
+
 /* ACOS(X)
  * RETURNS ARC COS OF X
  * DOUBLE PRECISION (IEEE DOUBLE 53 bits, VAX D FORMAT 56 bits)
@@ -168,3 +174,9 @@
            t=atan2(one,0.0);   /* t = PI/2 */
        return(t+t);
 }
+
+float
+acosf(float x)
+{
+       return (float)acos(x);
+}
diff -r a76412c43cdb -r 9a63915b161c lib/libm/noieee_src/n_atan.c
--- a/lib/libm/noieee_src/n_atan.c      Sun Nov 24 13:13:12 2013 +0000
+++ b/lib/libm/noieee_src/n_atan.c      Sun Nov 24 14:41:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: n_atan.c,v 1.5 2003/08/07 16:44:50 agc Exp $   */
+/*     $NetBSD: n_atan.c,v 1.6 2013/11/24 14:41:53 martin Exp $        */
 /*
  * Copyright (c) 1985, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -85,3 +85,11 @@
        double one=1.0;
        return(atan2(x,one));
 }
+
+float
+atanf(float x)
+{
+       float one=1.0;
+       return (float)atan2(x,one);
+}
+



Home | Main Index | Thread Index | Old Index