This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC fenv fixes.


On Wed, Mar 28, 2007 at 10:44:56AM -0500, Steven Munroe wrote:
>     performance penalty (but have no other visible effect).  */
>  extern const fenv_t *__fe_nomask_env (void);
>  # define FE_NOMASK_ENV	(__fe_nomask_env ())
> +
> +/* Floating-point environment with all exceptions disabled.  */
> +extern const fenv_t *__fe_mask_env (void);
> +# define FE_MASK_ENV	(__fe_mask_env ())

This is incorrect.  The mere evaluation of FE_NOMASK_ENV/FE_MASK_ENV
should have no effect at all.  This stuff should be delayed until
the environment is actually installed.

You should be using magic numbers, like in the i386 port.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]