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 log10f() for vax



details:   https://anonhg.NetBSD.org/src/rev/655e524b81b5
branches:  trunk
changeset: 794117:655e524b81b5
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Mar 06 10:57:44 2014 +0000

description:
log10f() for vax

diffstat:

 lib/libm/noieee_src/n_log10.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r f408b3ccb1e4 -r 655e524b81b5 lib/libm/noieee_src/n_log10.c
--- a/lib/libm/noieee_src/n_log10.c     Thu Mar 06 10:57:01 2014 +0000
+++ b/lib/libm/noieee_src/n_log10.c     Thu Mar 06 10:57:44 2014 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: n_log10.c,v 1.6 2003/08/07 16:44:52 agc Exp $ */
+/*      $NetBSD: n_log10.c,v 1.7 2014/03/06 10:57:44 martin Exp $ */
 /*
  * Copyright (c) 1985, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -93,3 +93,13 @@
        return(ivln10*log(x));
 #endif /* defined(__vax__)||defined(tahoe) */
 }
+
+float
+log10f(float x)
+{
+#if defined(__vax__)||defined(tahoe)
+       return(logf(x)/ln10hi);
+#else  /* defined(__vax__)||defined(tahoe) */
+       return(ivln10*log(x));
+#endif /* defined(__vax__)||defined(tahoe) */
+}



Home | Main Index | Thread Index | Old Index