Module Name:    src
Committed By:   martin
Date:           Sun Nov 24 14:49:00 UTC 2013

Modified Files:
        src/lib/libm/noieee_src: n_cbrt.c

Log Message:
Provide cbrtf() and cbrtl()


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/noieee_src/n_cbrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/noieee_src/n_cbrt.c
diff -u src/lib/libm/noieee_src/n_cbrt.c:1.5 src/lib/libm/noieee_src/n_cbrt.c:1.6
--- src/lib/libm/noieee_src/n_cbrt.c:1.5	Thu Aug  7 16:44:50 2003
+++ src/lib/libm/noieee_src/n_cbrt.c	Sun Nov 24 14:49:00 2013
@@ -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 @@ static const double
 	    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)
 {

Reply via email to