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


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] powerpc: Fix inline feraiseexcept, feclearexcept macros


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!


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