tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Default value of x87 registers' reserved bits

On Sun, May 30, 2010 at 02:48:42PM +0300, Stathis Kamperis wrote:
> So you suggest that we provide a partial fp env representation with
> FE_DFL_ENV, that gets completed every time in the level of its
> consumers (feupdateenv, fesetenv).


> There's a corner case though, that needs special treatment. For
> example, what would happen if for some reason (?) the user did
> something like:
> fenv_t tmp;
> memcpy(&tmp, FE_DFL_ENV, sizeof tmp);
> and then at some point:
> feupdateenv(&tmp);

I don't see why this requires a special case?


Home | Main Index | Thread Index | Old Index