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 for POWER7 sinf/cosf


On 05/29/2012 09:44 PM, Ryan S. Arnold wrote:
> On Tue, May 29, 2012 at 6:16 PM, Adhemerval Zanella
> <azanella@linux.vnet.ibm.com> wrote:
>> -      if (x == 0.0)
>> -       return one;
>> +      feraiseexcept (FE_INEXACT);
>> +      return one;
> Call __feraiseexcept instead in order to avoid the PLT.
>
> Ryan
>
At first I also thought I'd create a PLT call, however some algorithms on ldbl-128ibm uses
this call in this manner(s_ctanl.c, s_lroundl.c, etc.). I also checked the generated assembly
and it turned to be an internal call: 

   4879c:       60 42 00 00     ori     r2,r2,0
   487a0:       3c 60 02 00     lis     r3,512
   487a4:       4b fd ef 4d     bl      276f0 <.feraiseexcept>
   487a8:       60 00 00 00     nop



-- 
Adhemerval Zanella Netto
  Software Engineer
  Linux Technology Center Brazil
  Toolchain / GLIBC on Power Architecture
  azanella@linux.vnet.ibm.com / azanella@br.ibm.com
  +55 61 8642-9890


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