This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: floating-point formats
- From: "Dr. Andy Phillips" <atp at northernworkhouse dot co dot uk>
- To: Lars Brinkhoff <lars dot spam at nocrew dot org>
- Cc: glibc <libc-alpha at sources dot redhat dot com>
- Date: Sun, 07 Jul 2002 11:01:38 +0100
- Subject: Re: floating-point formats
- References: <85elejerkw.fsf@junk.nocrew.org> <3D2441D9.F706A35@northernworkhouse.co.uk> <85znx7d62a.fsf@junk.nocrew.org> <3D2571BB.2A6543D1@northernworkhouse.co.uk> <85fzyybccz.fsf_-_@junk.nocrew.org>
- Reply-to: atp at pergamentum dot com
Hi,
> The VAX formats are sign-magnitude, right? The PDP-10 formats are
Yes.
> two's complement. This means that assigning to x.ieee.negative won't
> work, since the entire value is affected by a sign change. Functions
Ok, more accessor functions/macros then.
> Does anything in glibc rely on the existence of inf or NaNs? The
> PDP-10 has neither, and I don't think there are any reserved bit
> patterns.
stdio-common/printf_fp has several isnan calls. strtod mentions
it. There are lots of mentions under sysdeps/generic, but I dont
think we are counting those.
> I'm thinking "do as much as possible in sysdeps/{vax,pdp10}".
Lets see what happens with float-format.h The changes may be
trivial for many files once that is taking shape.
Cheers,
Andy
--
Dr. Andy Phillips atp@pergamentum.com