]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ldbl-128ibm-compat: Introduce ieee128 symbols
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Thu, 28 Jun 2018 08:27:50 +0000 (13:57 +0530)
committerRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Thu, 28 Jun 2018 08:27:50 +0000 (13:57 +0530)
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-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>

* 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.

ChangeLog
sysdeps/ieee754/ldbl-128ibm-compat/Versions
sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c [new file with mode: 0644]

index eb1c35feb58ca32d23bfec635bd8a0d89efb5ebf..7a585e1e161d7b5cf12e9594e8fd92ac8996a0c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
+
+       * 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.
+
 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
 
        [BZ #23266]
index 322041132e0054274fc6a28a2553ef8d90c17c22..f4047f06a6b3bf96d05bc1c4e11f7b8bbd99fe93 100644 (file)
@@ -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 (file)
index 0000000..21eeb94
--- /dev/null
@@ -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
+   <http://www.gnu.org/licenses/>.  */
+
+#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 (file)
index 0000000..0cbdc2b
--- /dev/null
@@ -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
+   <http://www.gnu.org/licenses/>.  */
+
+#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 (file)
index 0000000..1a166cd
--- /dev/null
@@ -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
+   <http://www.gnu.org/licenses/>.  */
+
+#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 (file)
index 0000000..22bdd56
--- /dev/null
@@ -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
+   <http://www.gnu.org/licenses/>.  */
+
+#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 (file)
index 0000000..adac083
--- /dev/null
@@ -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
+   <http://www.gnu.org/licenses/>.  */
+
+#include "../float128/wcstof128_l.c"
+weak_alias (wcstof128_l, __wcstoieee128_l)