Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2002 19:21:25 -0700 (PDT)
From:      Jake Burkholder <jake@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10497 for review
Message-ID:  <200204300221.g3U2LPQ69326@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10497

Change 10497 by jake@jake_sparc64 on 2002/04/29 19:20:40

	Back out changes to work around long double problems now that
	-msoft-quad-float works.

Affected files ...

... //depot/projects/sparc64/lib/libdevstat/devstat.c#5 edit
... //depot/projects/sparc64/lib/libdevstat/devstat.h#3 edit
... //depot/projects/sparc64/lib/msun/src/s_rint.c#3 edit
... //depot/projects/sparc64/usr.bin/systat/iostat.c#4 edit
... //depot/projects/sparc64/usr.bin/systat/vmstat.c#4 edit
... //depot/projects/sparc64/usr.sbin/iostat/iostat.c#3 edit

Differences ...

==== //depot/projects/sparc64/lib/libdevstat/devstat.c#5 (text+ko) ====

@@ -1162,7 +1162,7 @@
 
 int
 devstat_compute_statistics(struct devstat *current, struct devstat *previous,
-			   double etime, ...)
+			   long double etime, ...)
 {
 	const char *func_name = "devstat_compute_statistics";
 	u_int64_t totalbytes, totalbytesread, totalbyteswrite;
@@ -1172,7 +1172,7 @@
 	va_list ap;
 	devstat_metric metric;
 	u_int64_t *destu64;
-	double *destld;
+	long double *destld;
 	int retval;
 
 	retval = 0;
@@ -1239,10 +1239,10 @@
 			destu64 = (u_int64_t *)va_arg(ap, u_int64_t *);
 			break;
 		case DEVSTAT_ARG_LD:
-			destld = (double *)va_arg(ap, double *);
+			destld = (long double *)va_arg(ap, long double *);
 			break;
 		case DEVSTAT_ARG_SKIP:
-			destld = (double *)va_arg(ap, double *);
+			destld = (long double *)va_arg(ap, long double *);
 			break;
 		default:
 			retval = -1;

==== //depot/projects/sparc64/lib/libdevstat/devstat.h#3 (text+ko) ====

@@ -163,7 +163,7 @@
 		       int *num_matches);
 int devstat_compute_statistics(struct devstat *current,
 			       struct devstat *previous,
-			       double etime, ...);
+			       long double etime, ...);
 long double devstat_compute_etime(struct timeval cur_time,
 				  struct timeval prev_time);
 __END_DECLS

==== //depot/projects/sparc64/lib/msun/src/s_rint.c#3 (text+ko) ====

@@ -35,9 +35,9 @@
  * case this is compiled with gcc -traditional.
  */
 #ifdef __STDC__
-static const double
+static const long double
 #else
-static double
+static long double
 #endif
 TWO52[2]={
   4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */

==== //depot/projects/sparc64/usr.bin/systat/iostat.c#4 (text+ko) ====

@@ -89,7 +89,7 @@
 static  int kbpt = 0;			/* default ms/seek shown */
 
 static int barlabels(int);
-static void histogram(double, int, double);
+static void histogram(long double, int, double);
 static int numlabels(int);
 static int devstats(int, int, int);
 static void stat1(int, int);
@@ -369,7 +369,7 @@
 
 static void
 histogram(val, colwidth, scale)
-	double val;
+	long double val;
 	int colwidth;
 	double scale;
 {

==== //depot/projects/sparc64/usr.bin/systat/vmstat.c#4 (text+ko) ====

@@ -137,7 +137,7 @@
 static void getinfo(struct Info *);
 static void putint(int, int, int, int);
 static void putfloat(double, int, int, int, int, int);
-static void putlongdouble(double, int, int, int, int, int);
+static void putlongdouble(long double, int, int, int, int, int);
 static int ucount(void);
 
 static	int ncpu;
@@ -712,7 +712,7 @@
 
 static void
 putlongdouble(f, l, lc, w, d, nz)
-	double f;
+	long double f;
 	int l, lc, w, d, nz;
 {
 	char b[128];

==== //depot/projects/sparc64/usr.sbin/iostat/iostat.c#3 (text+ko) ====

@@ -422,7 +422,7 @@
 	for (headercount = 1;;) {
 		struct devinfo *tmp_dinfo;
 		long tmp;
-		double etime;
+		long double etime;
 
 		if (Tflag > 0) {
 			if ((readvar(kd, "kern.tty_nin", X_TK_NIN, &cur.tk_nin,

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204300221.g3U2LPQ69326>