This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Add optimized version of [l]lrintf
- From: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- To: Rajalakshmi Srinivasaraghavan <raji at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Cc:
- Date: Tue, 13 Jun 2017 18:00:14 -0300
- Subject: Re: [PATCH] powerpc: Add optimized version of [l]lrintf
- Authentication-results: sourceware.org; auth=none
- References: <1495779784-3339-1-git-send-email-raji@linux.vnet.ibm.com>
Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> writes:
> This patch makes use of optimized double version of llrint for single
> precision as both the versions return [long] long type.
>
> 2017-05-26 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
>
> * sysdeps/powerpc/powerpc64/fpu/s_llrint.S
> (__llrintf): Define as strong alias of __llrint.
> (llrintf): Define as weak alias of __llrint.
> (__lrintf): Define as strong alias of __llrint.
> (lrintf): Define as weak alias of __llrint.
> * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
> * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
> * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Remove file.
When this file is removed, the build system will use the file
sysdeps/ieee754/flt-32/s_llrintf.c causing multiple definition on
--disable-multi-arch.
The same thing happened to sysdeps/powerpc/powerpc64/fpu/s_lrint.S.
> diff --git a/sysdeps/powerpc/powerpc64/fpu/s_llrintf.S b/sysdeps/powerpc/powerpc64/fpu/s_llrintf.S
> deleted file mode 100644
> index 4050be6..0000000
> --- a/sysdeps/powerpc/powerpc64/fpu/s_llrintf.S
> +++ /dev/null
> @@ -1,36 +0,0 @@
> -/* Round double to long int. PowerPC64 version.
> - Copyright (C) 2004-2017 Free Software Foundation, Inc.
> - This file is part of the GNU C Library.
> -
> - The GNU C Library is free software; you can redistribute it and/or
> - modify it under the terms of the GNU Lesser General Public
> - License as published by the Free Software Foundation; either
> - version 2.1 of the License, or (at your option) any later version.
> -
> - The GNU C Library is distributed in the hope that it will be useful,
> - but WITHOUT ANY WARRANTY; without even the implied warranty of
> - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - Lesser General Public License for more details.
> -
> - You should have received a copy of the GNU Lesser General Public
> - License along with the GNU C Library; if not, see
> - <http://www.gnu.org/licenses/>. */
> -
> -#include <sysdep.h>
> -
> -/* long long int[r3] __llrintf (float x[fp1]) */
> -ENTRY (__llrintf)
Alan Modra is changing this file too.
When fixing your patch, I suggest to rebase it on top of this patch in order
to solve all the conflicts:
https://patchwork.sourceware.org/patch/20668/
--
Tulio Magno