From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <459069f151e04aae2ef82e8ca90852ad.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199704091520.LAA02337@alpha0.estabrook.org> Date: Wed, 9 Apr 1997 10:45:41 -0400 (EDT) From: Randy Chapman Subject: Re: Sun Letter Revised Draft ( Wheres My Alpha! ) In-Reply-To: <334B8F08.2E88@voicenet.com> > > In summary, Linux users prefer to license Java on Linux (SPARC or Intel) rather > > I suppose I am being nit-picky, but where is the DEC/Alpha ( anyone > speaking for mips?) . I wudda have thought that dec would have objected > to NOT being included. Who knows, maybe there are no java nuts ( beans ) > at dec. *Looks at the loaner alpha in his bedroom* Yes, I think some people there want it done. And speaking of that, I need a little help with a problem I'm having on that system.... Take the following program: #include #include #include void fpe_handler(int sig) { printf("GOT AN FPE!\n"); } int main() { double a, b, c; float d, e, f; signal(SIGFPE, fpe_handler); printf("about to divide 1.0 by 0.0\n"); a = 1.0; b = 0.0; c = a/b; printf("result: %g\n", c); printf("about to assign HUGE_VAL to a float\n"); /* whats the proper way to get this, anyhow? */ f = HUGE_VAL; printf("about to print that float\n"); printf("Inf is %g\n", f); return 0; } On linux/x86 that works quite nicely: about to divide 1.0 by 0.0 result: Inf about to assign HUGE_VAL to a float about to print that float Inf is Inf On solaris/sparc that works quite nicely as well. On osf/alpha with cc -ieee it works nicely as well. On linux/alpha with gcc -ieee it doesn't work =( This of course is the platform that I need it on =/ Any ideas? Thanks! --randy -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com