Mac Intel

Joel Reymont joelr1@REDACTED
Mon Aug 14 03:02:36 CEST 2006


Thanks Chris!

I figured out what happened after I sent the message. Apple's gcc  
optimized everything away and so no floating-point operations were  
performed. I changed the FPE test code to have

char *a = "3.23e133";
char *b = "3.57e257";
double res;

void do_fmul(void)
{
     res = atof(a) * atof(b);
}

and automagically everything worked and I got the IP and everything  
else. I'm wondering, though, do I deal with just the IP or do I add  
CS to it as well?

On Aug 14, 2006, at 1:43 AM, Chris Double wrote:

> On Ubuntu 6.06 on a Pentium 4:
>
> result = 8.27652E+06
> status = 0
> control = 37f
> ip = b7dfb567
> cs = 73
> op = bfb0bd34
>
> Chris.

--
http://wagerlabs.com/








More information about the erlang-questions mailing list