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: PowerPC's math_ldbl.h


Ping.

On 17-03-2013 19:44, Adhemerval Zanella wrote:
> On 03/15/2013 11:52 PM, Adhemerval Zanella wrote:
>
> This patch fixes the ABI issue. I though about make a cleanup of the multiple w_sqrt
> version on PPC, but I add in a TODO list. Ok to apply?
>
> --
>
> 2013-03-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
>
> 	* sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat symbol.
>
> --
>
> diff --git a/sysdeps/powerpc/fpu/w_sqrt.c b/sysdeps/powerpc/fpu/w_sqrt.c
> index 2488ad9..70f28dd 100644
> --- a/sysdeps/powerpc/fpu/w_sqrt.c
> +++ b/sysdeps/powerpc/fpu/w_sqrt.c
> @@ -19,6 +19,7 @@
>  #include <math.h>
>  #include <math_private.h>
>  #include <fenv_libc.h>
> +#include <math_ldbl_opt.h>
>
>  double
>  __sqrt (double x)		/* wrapper sqrt */
> @@ -42,3 +43,6 @@ weak_alias (__sqrt, sqrt)
>  #ifdef NO_LONG_DOUBLE
>    strong_alias (__sqrt, __sqrtl) weak_alias (__sqrt, sqrtl)
>  #endif
> +#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
> +compat_symbol (libm, __sqrt, sqrtl, GLIBC_2_0);
> +#endif


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