diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-23 16:30:18 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-23 16:33:50 +0100 |
commit | 293f29e8c45ca0fcb064107e275a477ad1913106 (patch) | |
tree | a79d2b2b93af581c861488f2bca773e4751288f0 /main/libc0.9.32/0014-libm-add-cabsf-and-cabsl-functions.patch | |
parent | 453d9efbeb9055b3762960fb09894a04ded1495f (diff) | |
download | aports-293f29e8c45ca0fcb064107e275a477ad1913106.tar.bz2 aports-293f29e8c45ca0fcb064107e275a477ad1913106.tar.xz |
main/libc0.9.32: reorganize patches
We keep track of our patches in git now:
http://git.alpinelinux.org/cgit/uClibc-alpine
This is so its easier to keep track of upstream and make sure that
our patches are upstreamed.
we also bump pkgrel so we make sure we get the patches tested properly
Diffstat (limited to 'main/libc0.9.32/0014-libm-add-cabsf-and-cabsl-functions.patch')
-rw-r--r-- | main/libc0.9.32/0014-libm-add-cabsf-and-cabsl-functions.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/libc0.9.32/0014-libm-add-cabsf-and-cabsl-functions.patch b/main/libc0.9.32/0014-libm-add-cabsf-and-cabsl-functions.patch new file mode 100644 index 0000000000..cb19a9f954 --- /dev/null +++ b/main/libc0.9.32/0014-libm-add-cabsf-and-cabsl-functions.patch @@ -0,0 +1,39 @@ +From aee19ef04c6abf52f4fd646269fcf8a8609164f9 Mon Sep 17 00:00:00 2001 +From: William Pitcock <nenolod@dereferenced.org> +Date: Tue, 1 Nov 2011 18:55:25 -0500 +Subject: [PATCH] libm: add cabsf() and cabsl() functions. + +Signed-off-by: William Pitcock <nenolod@dereferenced.org> +Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> +(cherry picked from commit 2086015b9a223586c1a2b8d7f015ad3a38bdf8bc) +--- + libm/w_cabs.c | 16 ++++++++++++++++ + 1 files changed, 16 insertions(+), 0 deletions(-) + +diff --git a/libm/w_cabs.c b/libm/w_cabs.c +index 4044f4b..b259248 100644 +--- a/libm/w_cabs.c ++++ b/libm/w_cabs.c +@@ -13,3 +13,19 @@ double cabs(double _Complex z) + return hypot(__real__ z, __imag__ z); + } + libm_hidden_def(cabs) ++ ++libm_hidden_proto(cabsf) ++float cabsf(float _Complex z) ++{ ++ return (float) hypot(__real__ z, __imag__ z); ++} ++libm_hidden_def(cabsf) ++ ++#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __NO_LONG_DOUBLE_MATH ++libm_hidden_proto(cabsl) ++long double cabsl(long double _Complex z) ++{ ++ return hypotl(__real__ z, __imag__ z); ++} ++libm_hidden_def(cabsl) ++#endif +-- +1.7.8 + |