Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/lib/libm/noieee_src Pull up revision 1.4 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/0262a70af567
branches:  netbsd-1-6
changeset: 527945:0262a70af567
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 18 13:38:08 2002 +0000

description:
Pull up revision 1.4 (requested by matt in ticket #286):
Ansify libm noieeesrc (for VAX).  Also make const data really const.
libm for VAX can compiles with WARNS=2

diffstat:

 lib/libm/noieee_src/n_cabs.c |  6 +++---
 lib/libm/noieee_src/n_cbrt.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r b84e269246a0 -r 0262a70af567 lib/libm/noieee_src/n_cabs.c
--- a/lib/libm/noieee_src/n_cabs.c      Tue Jun 18 13:37:59 2002 +0000
+++ b/lib/libm/noieee_src/n_cabs.c      Tue Jun 18 13:38:08 2002 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: n_cabs.c,v 1.3 1999/07/02 15:37:36 simonb Exp $ */
+/*      $NetBSD: n_cabs.c,v 1.3.10.1 2002/06/18 13:38:08 lukem Exp $ */
 /*
  * Copyright (c) 1985, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -88,6 +88,7 @@
  * from decimal to binary accurately enough to produce the hexadecimal values
  * shown.
  */
+#define _LIBM_STATIC
 #include "mathimpl.h"
 
 vc(r2p1hi, 2.4142135623730950345E0   ,8279,411a,ef32,99fc,   2, .9A827999FCEF32)
@@ -105,8 +106,7 @@
 #endif
 
 double
-hypot(x,y)
-double x, y;
+hypot(double x, double y)
 {
        static const double zero=0, one=1,
                      small=1.0E-18;    /* fl(1+small)==1 */
diff -r b84e269246a0 -r 0262a70af567 lib/libm/noieee_src/n_cbrt.c
--- a/lib/libm/noieee_src/n_cbrt.c      Tue Jun 18 13:37:59 2002 +0000
+++ b/lib/libm/noieee_src/n_cbrt.c      Tue Jun 18 13:38:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: n_cbrt.c,v 1.3 1999/07/02 15:37:36 simonb Exp $        */
+/*     $NetBSD: n_cbrt.c,v 1.3.10.1 2002/06/18 13:38:17 lukem Exp $    */
 /*
  * Copyright (c) 1985, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -66,8 +66,8 @@
            F= 45./28.,
            G= 5./14.;
 
-double cbrt(x)
-double x;
+double
+cbrt(double x)
 {
        double r,s,t=0.0,w;
        unsigned long *px = (unsigned long *) &x,



Home | Main Index | Thread Index | Old Index