This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [12/12] Add fesetexcept: sparc
On Fri, 12 Aug 2016, Jose E. Marchesi wrote:
>
> +int
> +fesetexcept (int excepts)
> +{
> + fenv_t tmp;
> +
> + __fenv_stfsr (tmp);
> + tmp |= excepts & FE_ALL_EXCEPT;
> + __fenv_ldfsr (tmp);
>
> Aren't these stfsr and ldfsr reversed?
They are in the same order as in fesetexceptflag. __fenv_stfsr = store
status register to memory, __fenv_ldfsr = load status register from
memory.
--
Joseph S. Myers
joseph@codesourcery.com