[PATCH v2 5/10] Tilera (and Linux asm-generic) support for glibc

Roland McGrath roland@hack.frob.com
Fri Nov 11 18:10:00 GMT 2011


> diff --git a/include/fenv.h b/include/fenv.h
> index 3605f81..c061eb9 100644
> --- a/include/fenv.h
> +++ b/include/fenv.h
> @@ -20,4 +20,10 @@ libm_hidden_proto (feholdexcept)
>  libm_hidden_proto (feupdateenv)
>  libm_hidden_proto (fetestexcept)
>  
> +/* Allow coding feraiseexcept() without guarding the call with an
> +   ifdef of the argument, to suport platforms without FP exceptions.  */

There's a typo in this comment.

> +#if FE_ALL_EXCEPT == 0
> +# define feraiseexcept(e) ({ 1; })
> +#endif

This is just generically bad macro practice: it fails to evaluate its argument.

Those nits aside, I need some more explanation of what this is for.


Thanks,
Roland



More information about the Libc-alpha mailing list