[ia64-tools] Re: ia64 fenv patch.
H . J . Lu
hjl@valinux.com
Thu Sep 21 07:34:00 GMT 2000
On Thu, Sep 21, 2000 at 10:51:44AM +0200, Andreas Schwab wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
>
> |> Index: sysdeps/ia64/fpu/fegetexcept.c
> |> ===================================================================
> |> RCS file: /work/cvs/gnu/glibc/sysdeps/ia64/fpu/fegetexcept.c,v
> |> retrieving revision 1.1.1.1
> |> diff -u -p -r1.1.1.1 fegetexcept.c
> |> --- sysdeps/ia64/fpu/fegetexcept.c 2000/05/21 21:12:03 1.1.1.1
> |> +++ sysdeps/ia64/fpu/fegetexcept.c 2000/09/21 01:27:21
> |> @@ -27,5 +27,5 @@ fegetexcept (void)
> |>
> |> __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr));
> |>
> |> - return (fpsr ^ FE_ALL_EXCEPT) & FE_ALL_EXCEPT;
> |> + return (~fpsr) & FE_ALL_EXCEPT;
>
> What's wrong with this? Both expressions are equivalent.
>
I have so many problems with those functions. I just copied them from
ia32 :-(. Also it looks nicer :-).
--
H.J. Lu (hjl@gnu.org)
More information about the Libc-hacker
mailing list