[PATCH] powerpc: Fix inline feraiseexcept, feclearexcept macros

Joseph Myers joseph@codesourcery.com
Tue Feb 24 17:45:00 GMT 2015


On Mon, 23 Feb 2015, Adhemerval Zanella wrote:

> +static void
> +test_fesetround (void)
> +{
> +#if defined FE_TONEAREST && defined FE_TOWARDZERO
> +  int res;
> +
> +  printf ("Tests for fesetround\n");
> +
> +  res = fesetround ((int) FE_TOWARDZERO);
> +  if (res != 0)
> +    {
> +      printf ("fesetround (FE_TOWARDZERO) failed: %d\n", res);
> +      ++count_errors;
> +    }

That fesetround fails should not itself cause the test to fail.  But it 
should either succeed for both int and double versions of the same 
argument value, or fail for both.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list