From owner-p4-projects Mon Apr 29 19:21:38 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4804737B416; Mon, 29 Apr 2002 19:21:26 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5E5DC37B405 for ; Mon, 29 Apr 2002 19:21:25 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3U2LPQ69326 for perforce@freebsd.org; Mon, 29 Apr 2002 19:21:25 -0700 (PDT) (envelope-from jake@freebsd.org) Date: Mon, 29 Apr 2002 19:21:25 -0700 (PDT) Message-Id: <200204300221.g3U2LPQ69326@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to jake@freebsd.org using -f From: Jake Burkholder Subject: PERFORCE change 10497 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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