Inconsistent results casting double to int on x86
Thu Mar 23 21:57:00 GMT 2006

On 3/23/06, Perry Smith <> wrote:
> On Mar 23, 2006, at 8:19 AM, Andrew Haley wrote:
> >
> > This is because of excess precision in the x87.
> >
> > This is
> I don't use Intel so forgive my ignorance.  Is the call to _FPU_SETCW
> mentioned in comment 60 (
> id=323#c60) going to affect how the x87 operates per process or for
> the whole system?  Thats obviously an OS specific question but
> generally is that register saved in the process context?  (It seems
> like it would be.)

Thanks for the responses everyone. The call to  _FPU_SETCW mentioned
above reducing x87 precision to 64-bit takes care of (or dodges) the
specific issue I described in the original post.



More information about the Gcc-help mailing list