diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-06-14 11:44:14 -0500 |
---|---|---|
committer | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-08-17 14:06:03 -0500 |
commit | ce6698ea0aea863bbfb4e932494406789e4e36c1 (patch) | |
tree | fc8a53b53c2b6d459dd9b4a5042314bcad7f4482 /math/cabsl.c | |
parent | 1f645571d2db9008b3cd3d5acb9ff93357864283 (diff) | |
download | glibc-ce6698ea0aea863bbfb4e932494406789e4e36c1.zip glibc-ce6698ea0aea863bbfb4e932494406789e4e36c1.tar.gz glibc-ce6698ea0aea863bbfb4e932494406789e4e36c1.tar.bz2 |
Support for type-generic libm function implementations libm
This defines a new classes of libm objects. The
<func>_template.c file which is used in conjunction
with the new makefile hooks to derive variants for
each type supported by the target machine.
The headers math-type-macros-TYPE.h are used to supply
macros to a common implementation of a function in
a file named FUNC_template.c and glued togethor via
a generated file matching existing naming in the
build directory.
This has the properties of preserving the existing
override mechanism and not requiring any arcane
build system twiddling. Likewise, it enables machines
to override these files without any additional work.
I have verified the built objects for ppc64, x86_64,
alpha, arm, and m68k do not change in any meaningful
way with these changes using the Fedora cross toolchains.
I have verified the x86_64 and ppc64 changes still run.
Diffstat (limited to 'math/cabsl.c')
-rw-r--r-- | math/cabsl.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/math/cabsl.c b/math/cabsl.c deleted file mode 100644 index d87e3a2..0000000 --- a/math/cabsl.c +++ /dev/null @@ -1,28 +0,0 @@ -/* Return the complex absolute value of long double complex value. - Copyright (C) 1997-2016 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. - - 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 <complex.h> -#include <math.h> - -long double -__cabsl (long double _Complex z) -{ - return __hypotl (__real__ z, __imag__ z); -} -weak_alias (__cabsl, cabsl) |