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 Add cosf/sinf.
details: https://anonhg.NetBSD.org/src/rev/5afbfc3e8cd8
branches: trunk
changeset: 533180:5afbfc3e8cd8
user: matt <matt%NetBSD.org@localhost>
date: Sun Jun 23 21:54:37 2002 +0000
description:
Add cosf/sinf.
diffstat:
lib/libm/noieee_src/n_sincos.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 20e35597476e -r 5afbfc3e8cd8 lib/libm/noieee_src/n_sincos.c
--- a/lib/libm/noieee_src/n_sincos.c Sun Jun 23 21:48:52 2002 +0000
+++ b/lib/libm/noieee_src/n_sincos.c Sun Jun 23 21:54:37 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_sincos.c,v 1.4 2002/06/15 00:10:18 matt Exp $ */
+/* $NetBSD: n_sincos.c,v 1.5 2002/06/23 21:54:37 matt Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
@@ -71,6 +71,12 @@
return x+x*sin__S(x*x);
}
+float
+sinf(float x)
+{
+ return sin(x);
+}
+
double
cos(double x)
{
@@ -100,3 +106,9 @@
a = (z >= thresh ? __half-((z-__half)-c) : __one-(z-c));
return copysign(a,s);
}
+
+float
+cosf(float x)
+{
+ return cos(x);
+}
Home |
Main Index |
Thread Index |
Old Index