Squelch HOST_FLOAT_WORDS_BIG_ENDIAN
Tom Tromey
tromey@redhat.com
Thu Mar 13 00:10:00 GMT 2003
>>>>> "Zack" == Zack Weinberg <zack@codesourcery.com> writes:
Tom> You could try `make header-check' in the target build directory,
Tom> but I haven't run that target in a long time and I really have no
Tom> idea if it works at all.
Zack> I get floods of errors, starting with:
I'm not too surprised. Just ignore this.
Zack> static const jdouble NaN = 0x1.8000000000000p+2047;
Zack> It looks like I have my is-it-finite check backward. Will revise and
Zack> resubmit.
Thanks. If you could write a little program to check that one or more
of these constants is correct, that would be helpful. Easiest is
probably to just cut-and-paste the relevant output into a pure C++
program (writing CNI code to do this is more effort).
Tom> Is there no way to get jcf-dump to print a non-hex value? This
Tom> program is used for inspecting class files. Having hex output is less
Tom> useful than printing the constant the way one would expect.
Zack> I believe I can do that by using ldexp(). That may mean we have to
Zack> link jcf-dump against libm, though. (Not necessary on Linux, NetBSD,
Zack> or Solaris, but all these are relatively boring systems with respect
Zack> to weird portability issues.)
If it's possible without a lot of work, this is preferable. If it
isn't possible, well, I don't remember ever looking at a float or
double constant in jcf-dump's output.
Tom
More information about the Java
mailing list