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 cbrtf() and cbrtl()



details:   https://anonhg.NetBSD.org/src/rev/ad21a667bbbb
branches:  trunk
changeset: 791589:ad21a667bbbb
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Nov 24 14:49:00 2013 +0000

description:
Provide cbrtf() and cbrtl()

diffstat:

 lib/libm/noieee_src/n_cbrt.c |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 1d727c8a2094 -r ad21a667bbbb lib/libm/noieee_src/n_cbrt.c
--- a/lib/libm/noieee_src/n_cbrt.c      Sun Nov 24 14:46:18 2013 +0000
+++ b/lib/libm/noieee_src/n_cbrt.c      Sun Nov 24 14:49:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: n_cbrt.c,v 1.5 2003/08/07 16:44:50 agc Exp $   */
+/*     $NetBSD: n_cbrt.c,v 1.6 2013/11/24 14:49:00 martin Exp $        */
 /*
  * Copyright (c) 1985, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -62,6 +62,18 @@
            F= 45./28.,
            G= 5./14.;
 
+float
+cbrtf(float x)
+{
+       return (float)cbrt(x);
+}
+
+long double
+cbrtl(long double x)
+{
+       return cbrt((double)x);
+}
+
 double
 cbrt(double x)
 {



Home | Main Index | Thread Index | Old Index