Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Floating point support?
- X-seq: zsh-workers 7837
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Floating point support?
- Date: Wed, 15 Sep 1999 11:19:21 +0200
- In-reply-to: ""Bart Schaefer""'s message of "Tue, 14 Sep 1999 17:06:16 DFT." <990914170616.ZM27029@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
"Bart Schaefer" wrote:
> I'm also a bit dubious of making floating point precision dependent on the
> size of the integer type, but if it doesn't bother you ...
It does, and ksh 93 promises doubles, which are in any case what the
standard library routines will expect and produce. The problem is the
alignment in zsh's memory routines, including the heap allocation:
alignment is tied to the size of the integer type used. So if it's a
32-bit long you need to fiddle around to get doubles aligned. It can be
done, it just makes the thing more messy and accident prone.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author