RE: Question on SIGFPE

From: Richard B. Johnson
Date: Thu Oct 30 2003 - 08:51:17 EST


On Thu, 30 Oct 2003, Sreeram Kumar Ravinoothala wrote:

>
> Hi Mr Johnson,
> Thanks for the mail and sorry for pestering you. Actually the
> call __setfpucw is not visible anywhere. Should I use
> _FPU_SETCW(cw) instead of that?
>
> Thanks and Regards
> SReeram

Yes. I just looked on a RH-9 system. The stuff I referenced
was probably before there was a Red Hat!

I don't like that MACRO. Hopefully it works. It accesses memory
that may not exist if you do _FPU_SETCW(_FPU_DEFAULT).

For safety do:

fpu_control_t cw = _FPU_DEFAULT;
_FPU_SETCW(cw);


Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/