This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: sqrt interpreter Q
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: tromey at redhat dot com
- Cc: Andreas Tobler <toa at pop dot agri dot ch>, GCC-Java <java at gcc dot gnu dot org>
- Date: Fri, 08 Feb 2002 13:58:57 +1300
- Subject: Re: sqrt interpreter Q
- References: <3C62C85C.2665595A@pop.agri.ch> <877kpo4w6t.fsf@creche.redhat.com>
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
>
>Andreas> Is this obviously a problem in the libffi ? Or somewhere else?
>
>Without debugging it is hard to say. But I would say that it is a
>good guess.
>
>Try doing the same thing via reflection. If that also gets the
>incorrect answer then libffi is more strongly implicated.
>
For some reason my answer to this didn't make it to the list. I'm pretty
sure this is not a libffi bug but rather an endian bug in either either
"gcj -C" or libjava. The same problem occurs on Linux PPC. Reflection
does have similar problems with sub-int sized types, but that may be a
different issue.
regards
Bryce.