From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] fp crash
Date: Mon, 28 Jan 2013 22:34:22 -0500 [thread overview]
Message-ID: <36e7ea0b25c4d7ebb2c17384cac0b3f3@kw.quanstro.net> (raw)
In-Reply-To: <CAOw7k5i5VY9hhu0MG+vV9y_DZDomUeVR3nm=mXygivrdz+U5vw@mail.gmail.com>
On Mon Jan 28 22:29:14 EST 2013, charles.forsyth@gmail.com wrote:
> I looked it up and the change made in Inferno's dtoa.c is shown below:
>
> 148,154c1380,1381
> < d2.d = d.d;
> < word0(d2) &= Frac_mask1;
> < word0(d2) |= Exp_11;
> ---
> > word0(d2) = (word0(d) & Frac_mask1) | Exp_11;
> > word1(d2) = word1(d);
>
> in other words, it extracts and sets each word, rather than assign as
> one type and then access the same cell as a different type.
that's what i did. it turns out there are number of other places to fix, too.
(the cheat version is "volatile". :-))
- erik
next prev parent reply other threads:[~2013-01-29 3:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 23:37 erik quanstrom
2013-01-28 23:50 ` Charles Forsyth
2013-01-29 0:08 ` erik quanstrom
2013-01-29 1:41 ` erik quanstrom
2013-01-29 3:27 ` Charles Forsyth
2013-01-29 3:34 ` erik quanstrom [this message]
2013-01-29 17:17 ` Charles Forsyth
2013-01-29 17:19 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36e7ea0b25c4d7ebb2c17384cac0b3f3@kw.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).