diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-04-03 23:52:45 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-12-13 09:08:07 -0300 |
commit | 2eb1cd2f47fe6568c539fa105551bb73df8368ec (patch) | |
tree | 8404bf6b82969a864d916c1bdbda844fad7231e2 /sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c | |
parent | a1d3c9b64266d84736ba8eac96aa864165905b79 (diff) | |
download | glibc-2eb1cd2f47fe6568c539fa105551bb73df8368ec.tar.gz glibc-2eb1cd2f47fe6568c539fa105551bb73df8368ec.tar.xz glibc-2eb1cd2f47fe6568c539fa105551bb73df8368ec.zip |
math: Remove powerpc e_hypot
The generic implementation is shows only slight worse performance: POWER10 reciprocal-throughput latency master 8.28478 13.7253 new hypot 7.21945 13.1933 POWER9 reciprocal-throughput latency master 13.4024 14.0967 new hypot 14.8479 15.8061 POWER8 reciprocal-throughput latency master 15.5767 16.8885 new hypot 16.5371 18.4057 One way to improve might to make gcc generate xsmaxdp/xsmindp for fmax/fmin (it onl does for -ffast-math, clang does for default options). Checked on powerpc64-linux-gnu (power8) and powerpc64le-linux-gnu (power9).
Diffstat (limited to 'sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c')
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c deleted file mode 100644 index 382b4a0b27..0000000000 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c +++ /dev/null @@ -1,23 +0,0 @@ -/* __ieee_hypot() POWER7 version. - Copyright (C) 2013-2021 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 - <https://www.gnu.org/licenses/>. */ - -#include <math.h> - -#define __ieee754_hypot __ieee754_hypot_power7 - -#include <sysdeps/powerpc/fpu/e_hypot.c> |