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 erff() and erfcf().
details: https://anonhg.NetBSD.org/src/rev/9309713e4e26
branches: trunk
changeset: 791591:9309713e4e26
user: martin <martin%NetBSD.org@localhost>
date: Sun Nov 24 15:16:49 2013 +0000
description:
Provide erff() and erfcf().
diffstat:
lib/libm/noieee_src/n_erf.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 33d1dac21540 -r 9309713e4e26 lib/libm/noieee_src/n_erf.c
--- a/lib/libm/noieee_src/n_erf.c Sun Nov 24 15:12:10 2013 +0000
+++ b/lib/libm/noieee_src/n_erf.c Sun Nov 24 15:16:49 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_erf.c,v 1.8 2011/11/02 02:34:56 christos Exp $ */
+/* $NetBSD: n_erf.c,v 1.9 2013/11/24 15:16:49 martin Exp $ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -320,6 +320,12 @@
return (z-one);
}
+float
+erff(float x)
+{
+ return (float)erf(x);
+}
+
double
erfc(double x)
{
@@ -396,3 +402,11 @@
else
return two-r;
}
+
+float
+erfcf(float x)
+{
+ return (float)erfc(x);
+}
+
+
Home |
Main Index |
Thread Index |
Old Index