Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Randy Chapman <chapman@shell.ncm.com>
Subject: Re: Sun Letter Revised Draft ( Wheres My Alpha! )
Date: Wed, 9 Apr 1997 10:45:41 -0400 (EDT)	[thread overview]
Message-ID: <459069f151e04aae2ef82e8ca90852ad.axp-list@archive.invalid> (raw)
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 <stdio.h>
#include <math.h>
#include <signal.h>

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

       reply	other threads:[~1997-04-09 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <334B8F08.2E88@voicenet.com>
1997-04-09 14:45 ` Randy Chapman [this message]
1997-04-09 17:52 Sun Letter Revised Draft ( Wheres My Alpha! ) Randy Chapman
  -- strict thread matches above, loose matches on Subject: below --
1997-04-09 16:31 Jim Paradis
     [not found] <Pine.LNX.3.95.970409121229.521B-100000@shell.ncm.com>
1997-04-09 16:24 ` Andreas Johansson
     [not found] <Pine.A32.3.95.970409110746.66090D-100000@argent.tkg.com>
1997-04-09 16:15 ` Randy Chapman
1997-04-09 16:10 Jim Paradis
1997-04-09 12:43 Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox