[PATCH] powerpc: Fix inline feraiseexcept, feclearexcept macros

Adhemerval Zanella azanella@linux.vnet.ibm.com
Tue Mar 3 15:02:00 GMT 2015


On 24-02-2015 14:37, Joseph Myers wrote:
> 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.
>
Right, I have pushed the patch with this change. Thanks for the review!



More information about the Libc-alpha mailing list