delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "Martin Str|mberg (ams AT ludd DOT luth DOT se) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Fixing various bugs in frexp.S |
Date: | Mon, 8 Jan 2018 12:04:50 +0000 (UTC) |
Organization: | Aioe.org NNTP Server |
Lines: | 18 |
Message-ID: | <p2vmp0$14s4$1@gioia.aioe.org> |
References: | <5A4946EB DOT 3090500 AT gmx DOT de> |
NNTP-Posting-Host: | gOdCqiuC+VwqSgvHBNC1tQ.user.gioia.aioe.org |
X-Complaints-To: | abuse AT aioe DOT org |
User-Agent: | tin/2.4.1-20161224 ("Daill") (UNIX) (Linux/4.10.0-32-generic (x86_64)) |
X-Notice: | Filtered by postfilter v. 0.8.2 |
Bytes: | 1305 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> wrote: > The frexp function provided by libc.a has a couple of bugs: ... > - for NaN and infinity arguments no sign checks are done thus the > results are always positive > All these issues are serious deviations from the ansi/posix behavior. An NaN is a NaN. It has no positive or negative value. It has no value at all. I seriously doubt ansi/posix says anything about signedness of NaNs. Anyway, you're coding it so it's up to you. Thank you, you un-fatigue-able one. -- MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |