From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 28 Jan 2013 22:34:22 -0500 To: 9fans@9fans.net Message-ID: <36e7ea0b25c4d7ebb2c17384cac0b3f3@kw.quanstro.net> In-Reply-To: References: <4deb4818bb26c316406212a8d1146e14@ladd.quanstro.net> <1d8d7862b8cec2fabf4908f74cee6d7a@ladd.quanstro.net> <793f14df8ad879b262808fa833a03c0c@ladd.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] fp crash Topicbox-Message-UUID: 10fd20e6-ead8-11e9-9d60-3106f5b1d025 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