sqrt interpreter Q

Andreas Tobler toa@pop.agri.ch
Thu Feb 7 23:18:00 GMT 2002



Tom Tromey wrote:
> 
> >>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
> 
> Andreas> Doing it with gij I get the following:
> Andreas> [titanium:~] andreast% gij my_sqrt
> Andreas> sqrt_int: -2147483648
> Andreas> sqrt_double: NaN
> Andreas> sqrt_long: -9223372034707292160
> 
> I looked at this a bit.
> On x86 the appended program prints the `int' value.
> So I think the C++ compiler translates `(int) NaN' differently from
> the Java compiler.
> 
> I haven't looked into it more deeply than this.  It does suggest that
> the f2* and d2* instructions in the interpreter might need to be
> modified to handle the special cases.
> 
> Are you interested in researching this a bit more?

I'm interested to have a working gnu java on darwin! When I can help
others with then the better.

Hopefully it isn't a high priority thing? I can spend some time on it
but only spare time.

And third, if you don't mind me asking questions then I can dig.

Thanks,
Andreas



More information about the Java mailing list