Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Floating point support?



"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