From owner-freebsd-arch@FreeBSD.ORG Wed Jul 14 08:57:17 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 603BE16A4CE for ; Wed, 14 Jul 2004 08:57:17 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE56043D2D for ; Wed, 14 Jul 2004 08:57:14 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i6E8vBlr037501; Wed, 14 Jul 2004 10:57:12 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Jay Sern Liew From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 11 Jul 2004 12:40:04 CDT." <1089567603.746.45.camel@athlon> Date: Wed, 14 Jul 2004 10:57:11 +0200 Message-ID: <37500.1089795431@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-arch@freebsd.org Subject: Re: increased machine precision for FreeBSD apps? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 08:57:17 -0000 In message <1089567603.746.45.camel@athlon>, Jay Sern Liew writes: >Hello guys, > > This is probably more of an organizational issue than an architectural >one. In the event of running applications with heavy floating point >arithmetic (e.g. scientific computation apps for one, encryption >algorithms, compression, .. etc ), would it be a good idea to decrease >rounding errors by increasing the data type size? >e.g. When a programmer declares a floating point variable, the >compiler/assembler allocates twice(or a multiple of) the space needed, >hence increasing the precision(and better approximation?). Most floating point is done in hardware so we are stuck with what the hardware offers mostly. That said "long double" to the extent it is implemented will be enough for any use inside the current physical model of reality. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.