* PowerPC and egcs gurus: Help! egcs PPC Float Min != JCK Float Min
@ 1999-02-27 15:09 Kevin B. Hendricks
1999-02-27 21:43 ` David Edelsohn
0 siblings, 1 reply; 2+ messages in thread
From: Kevin B. Hendricks @ 1999-02-27 15:09 UTC (permalink / raw)
To: linuxppc-dev, egcs
PowerPC and egcs Gurus,
I could really use some help here. I am part of the Blackdown porting team
that is porting JDK 1.2 to linux for powerpc. In order to do an offical
"release", our port must pass *all* of the Java Compatitiblity Kit (JCK)
tests.
One of the JCK tests tries to pass what it thinks Float_Min is back and forth.
The JCK says we *must* support a min Floating point value of
1.40239846e-45F but according to <float.h> in egcs our FLT_MIN on powerpc
is 1.17549435e-38F. The Float max values are the same.
So we end up failing this test (and then can never offically release).
I don't know enough about the float modes (normalized vs de-normalized, vs
?) on the PPC chip to know if or how we can support such a min float value.
I could use some help here. Do you know anything (or could you point me to
something or someone) that might explain, how the PPC processor can/will
support a min Float value of 1.40239846e-45F?
Is the FLT_MIN valkue in float.h of egcs, an egcs constraint or a real PPC
constraint?
Any ideas of how to get around this issue without have to write a floating
point emulation software library (and kill what little floating point
performance the JDK has)?
Any help would be greatly appreciated.
Thanks,
Kevin
Please cc in any replies, I am not on the egcs list.
p.s. Other that this issue, the JDK 1.2 is running very nicely on LinuxPPC
under green threads under Gary's glibc 1.99 clone and should now compile
cleanly under glibc 2.1 (when I finally get an R5 disk).
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PowerPC and egcs gurus: Help! egcs PPC Float Min != JCK Float Min
1999-02-27 15:09 PowerPC and egcs gurus: Help! egcs PPC Float Min != JCK Float Min Kevin B. Hendricks
@ 1999-02-27 21:43 ` David Edelsohn
0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 1999-02-27 21:43 UTC (permalink / raw)
To: Kevin B. Hendricks; +Cc: linuxppc-dev, egcs
There seems to be some confusion between FLT_MIN and MINFLOAT.
FLT_MIN is the smallest NORMALIZED float = 1.1754943508222875e-38F
MINFLOAT is the smallest float (_EXPBASE ** (FMINEXP - 1)) = 1.40129846432481707e-45
I do not know how the JCK actually is testing this, but the
PowerPC IEEE single-precision floating point can represent both values and
the real minimum depends on what one actually means. float.h FLT_MIN does
not have the same meaning as Java Float_Min.
David
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-02-27 21:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-27 15:09 PowerPC and egcs gurus: Help! egcs PPC Float Min != JCK Float Min Kevin B. Hendricks
1999-02-27 21:43 ` David Edelsohn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).