From patchwork Wed Jun 27 07:12:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajalakshmi S X-Patchwork-Id: 28064 X-Patchwork-Delegate: joseph@codesourcery.com Received: (qmail 112407 invoked by alias); 27 Jun 2018 07:12:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 112394 invoked by uid 89); 27 Jun 2018 07:12:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com From: Rajalakshmi Srinivasaraghavan To: libc-alpha@sourceware.org Cc: Rajalakshmi Srinivasaraghavan Subject: [PATCHv2] ldbl-128ibm-compat: Introduce ieee128 symbols Date: Wed, 27 Jun 2018 12:42:04 +0530 x-cbid: 18062707-0016-0000-0000-000001E08F1E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062707-0017-0000-0000-00003234CC35 Message-Id: <1530083524-6688-1-git-send-email-raji@linux.vnet.ibm.com> Changes since v1: Used weak_alias instead of libm_alias_float128_other_r_ldbl. --- This patch adds __*ieee128 symbols for strfrom, strtold, strtold_l, wcstold and wcstold_l functions. Redirection from *l to *ieee128 will be handled in separate patch once we start building these new files. 2018-06-27 Rajalakshmi Srinivasaraghavan * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128, __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l. * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file. * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file. * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file. * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file. * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file. --- sysdeps/ieee754/ldbl-128ibm-compat/Versions | 8 ++++++++ sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c | 20 ++++++++++++++++++++ sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c | 20 ++++++++++++++++++++ sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c | 20 ++++++++++++++++++++ sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c | 20 ++++++++++++++++++++ sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c | 20 ++++++++++++++++++++ 6 files changed, 108 insertions(+) create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Versions b/sysdeps/ieee754/ldbl-128ibm-compat/Versions index 322041132e..f4047f06a6 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Versions +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Versions @@ -111,3 +111,11 @@ libm { __ynieee128; } } +libc { + LDBL_IBM128_VERSION { + __strfromieee128; + __strtoieee128; + __strtoieee128_l; + __wcstoieee128; + __wcstoieee128_l; + } diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c b/sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c new file mode 100644 index 0000000000..21eeb94af0 --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c @@ -0,0 +1,20 @@ +/* Definitions for strfromf128. + + Copyright (C) 2018 Free Software Foundation, Inc. + + 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 + . */ + +#include "../float128/strfromf128.c" +weak_alias (strfromf128, __strfromieee128) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c b/sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c new file mode 100644 index 0000000000..0cbdc2bc27 --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c @@ -0,0 +1,20 @@ +/* Definition of strtof128. + Copyright (C) 2018 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 + . */ + +#include "../float128/strtof128.c" +weak_alias (strtof128, __strtoieee128) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c b/sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c new file mode 100644 index 0000000000..1a166cd4b0 --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c @@ -0,0 +1,20 @@ +/* Convert string representing a number to a _Float128 value, with locale. + Copyright (C) 2018 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 + . */ + +#include "../float128/strtof128_l.c" +weak_alias (strtof128_l, __strtoieee128_l) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c b/sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c new file mode 100644 index 0000000000..22bdd56aee --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c @@ -0,0 +1,20 @@ +/* Definition of wcstof128. + Copyright (C) 2018 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 + . */ + +#include "../float128/wcstof128.c" +weak_alias (wcstof128, __wcstoieee128) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c b/sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c new file mode 100644 index 0000000000..adac083939 --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c @@ -0,0 +1,20 @@ +/* Convert string representing a number to a _Float128 value, with locale. + Copyright (C) 2018 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 + . */ + +#include "../float128/wcstof128_l.c" +weak_alias (wcstof128_l, __wcstoieee128_l)