Re: increased machine precision for FreeBSD apps?
From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 07/14/04
- Previous message: Jay Sern Liew: "increased machine precision for FreeBSD apps?"
- In reply to: Jay Sern Liew: "increased machine precision for FreeBSD apps?"
- Next in thread: Dmitriy Startsev: "Re: increased machine precision for FreeBSD apps?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Jay Sern Liew <liew@jaysern.org> Date: Wed, 14 Jul 2004 10:57:11 +0200
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. _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Jay Sern Liew: "increased machine precision for FreeBSD apps?"
- In reply to: Jay Sern Liew: "increased machine precision for FreeBSD apps?"
- Next in thread: Dmitriy Startsev: "Re: increased machine precision for FreeBSD apps?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|