Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 2004 10:57:11 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Jay Sern Liew <liew@jaysern.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: increased machine precision for FreeBSD apps? 
Message-ID:  <37500.1089795431@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 11 Jul 2004 12:40:04 CDT." <1089567603.746.45.camel@athlon> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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