summaryrefslogtreecommitdiff
path: root/lib/libm/noieee_src/n_cbrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/noieee_src/n_cbrt.c')
-rw-r--r--lib/libm/noieee_src/n_cbrt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libm/noieee_src/n_cbrt.c b/lib/libm/noieee_src/n_cbrt.c
index 1d471079c0e..eb2c1e1eaac 100644
--- a/lib/libm/noieee_src/n_cbrt.c
+++ b/lib/libm/noieee_src/n_cbrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_cbrt.c,v 1.7 2012/12/05 23:20:03 deraadt Exp $ */
+/* $OpenBSD: n_cbrt.c,v 1.8 2013/07/15 04:08:26 espie Exp $ */
/* $NetBSD: n_cbrt.c,v 1.1 1995/10/10 23:36:40 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -59,6 +59,12 @@ static const double
F= 45./28.,
G= 5./14.;
+float
+cbrtf(float x)
+{
+ return (float)cbrt((double) x);
+}
+
double
cbrt(double x)
{