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

2010/5/30 Joerg Sonnenberger <>:
> On Sun, May 30, 2010 at 02:48:42PM +0300, Stathis Kamperis wrote:
>> 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?

Do you say that we will unconditionally copy&set the reserved bits,
even if the argument is not FE_DFL_ENV?

Because if only do the completion for FE_DFL_ENV, envp == FE_DFL_ENV
is not a strong enough condition.


Home | Main Index | Thread Index | Old Index