This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sqrt interpreter Q




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]