Subject: Re: Problem and fix for systat/top/ps
To: Johnny Billquist <bqt@softjar.se>
From: Christos Zoulas <christos@zoulas.com>
List: port-vax
Date: 03/14/2007 10:06:10
On Mar 14, 12:12pm, bqt@softjar.se (Johnny Billquist) wrote:
-- Subject: Re: Problem and fix for systat/top/ps

| > In real.c if (exp == 0) in all the decode_vax_?() functions don't put
| > anything in the r-> stuff, they just leave it 0'ed. Is that ok?
| > I understand exp == 0 means really -128, but...
| 
| On the VAX, if exp == 0 and sign == 0, then the value is to be taken as 
| literally zero, no matter what the other bits are.
| If exp == 0, and sign == 1, it's a NaN.
| 
| So I'd say that gcc is probably doing the right thing here. (I don't 
| think they every play around with NaNs...)

So it should be setting the "cl" member differently depending on the
value of the sign, but it is not?

christos