From owner-freebsd-ppc@FreeBSD.ORG Sun Jul 18 21:31:04 2004 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3C7D16A4CF for ; Sun, 18 Jul 2004 21:31:04 +0000 (GMT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73CB043D2F for ; Sun, 18 Jul 2004 21:31:04 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i6ILV3Wg016944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jul 2004 17:31:03 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i6ILUwLX041868; Sun, 18 Jul 2004 17:30:58 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16634.60434.732990.437652@grasshopper.cs.duke.edu> Date: Sun, 18 Jul 2004 17:30:58 -0400 (EDT) To: freebsd-ppc@freebsd.org X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Subject: long doubles? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2004 21:31:04 -0000 The reason that vmstat, iostat, systat, etc print wildly bogus device stats is because the printing of long doubles seems to be broken. According to a printf of sizeof(long double), the size of a long double is 8 bytes, the same as a double. However, according to sys/powerpc/include/float.h, LDBL_MANT_DIG == 113.. I don't know a lot about floating point, but I'm not sure this is possible. ;) If long doubles are 8 bytes (and they are on MacOSX, so that's a good sign), then shouldn't the LDBL_* constants be the same as the DBL* constants from float.h? (they are on MacOSX) Thanks, Drew