|
|
5de29b |
From be1d5d1d239883daea876f39e804d87ca028fe2c Mon Sep 17 00:00:00 2001
|
|
|
5de29b |
From: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
|
|
|
5de29b |
Date: Wed, 30 Jul 2014 07:33:06 -0500
|
|
|
5de29b |
Subject: [PATCH] PowerPC: multiarch wcschr for PowerPC64
|
|
|
5de29b |
|
|
|
5de29b |
commit 16fd2ae37cce401aad580d3d6ffae825827231ae
|
|
|
5de29b |
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
|
|
5de29b |
Date: Fri Dec 13 14:51:36 2013 -0500
|
|
|
5de29b |
|
|
|
5de29b |
Added the following files apart from original commit.
|
|
|
5de29b |
sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c
|
|
|
5de29b |
sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c
|
|
|
5de29b |
sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
|
|
|
5de29b |
sysdeps/powerpc/powerpc64/power6/wcschr.c
|
|
|
5de29b |
sysdeps/powerpc/power6/wcschr.c
|
|
|
5de29b |
---
|
|
|
5de29b |
sysdeps/powerpc/power6/wcschr.c | 89 ++++++++++++++++++++++
|
|
|
5de29b |
.../powerpc32/power4/multiarch/wcschr-power6.c | 26 +++++++
|
|
|
5de29b |
.../powerpc32/power4/multiarch/wcschr-power7.c | 26 +++++++
|
|
|
5de29b |
.../powerpc32/power4/multiarch/wcschr-ppc32.c | 31 ++++++++
|
|
|
5de29b |
sysdeps/powerpc/powerpc64/multiarch/Makefile | 5 +-
|
|
|
5de29b |
.../powerpc/powerpc64/multiarch/ifunc-impl-list.c | 11 +++
|
|
|
5de29b |
.../powerpc/powerpc64/multiarch/wcschr-power6.c | 19 +++++
|
|
|
5de29b |
.../powerpc/powerpc64/multiarch/wcschr-power7.c | 19 +++++
|
|
|
5de29b |
sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c | 18 +++++
|
|
|
5de29b |
sysdeps/powerpc/powerpc64/multiarch/wcschr.c | 38 +++++++++
|
|
|
5de29b |
sysdeps/powerpc/powerpc64/power6/wcschr.c | 2 +-
|
|
|
5de29b |
11 files changed, 282 insertions(+), 2 deletions(-)
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/power6/wcschr.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c
|
|
|
5de29b |
create mode 100644 sysdeps/powerpc/powerpc64/multiarch/wcschr.c
|
|
|
5de29b |
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/power6/wcschr.c glibc-2.17-c758a686/sysdeps/powerpc/power6/wcschr.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..7045677
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/power6/wcschr.c
|
|
|
5de29b |
@@ -0,0 +1,89 @@
|
|
|
5de29b |
+/* wcschr.c - Wide Character Search for POWER6+.
|
|
|
5de29b |
+ Copyright (C) 2012-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
5de29b |
+ not, see <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <wchar.h>
|
|
|
5de29b |
+
|
|
|
5de29b |
+#ifndef WCSCHR
|
|
|
5de29b |
+# define WCSCHR wcschr
|
|
|
5de29b |
+#endif
|
|
|
5de29b |
+
|
|
|
5de29b |
+/* Find the first occurrence of WC in WCS. */
|
|
|
5de29b |
+wchar_t *
|
|
|
5de29b |
+WCSCHR (const wchar_t *wcs, const wchar_t wc)
|
|
|
5de29b |
+{
|
|
|
5de29b |
+ const wchar_t *wcs2 = wcs + 1;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs;
|
|
|
5de29b |
+ if (*wcs == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ do
|
|
|
5de29b |
+ {
|
|
|
5de29b |
+ wcs += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs2 == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs2;
|
|
|
5de29b |
+ if (*wcs2 == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs2 += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs;
|
|
|
5de29b |
+ if (*wcs == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs2 == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs2;
|
|
|
5de29b |
+ if (*wcs2 == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs2 += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs;
|
|
|
5de29b |
+ if (*wcs == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs2 == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs2;
|
|
|
5de29b |
+ if (*wcs2 == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs2 += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs;
|
|
|
5de29b |
+ if (*wcs == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs2 == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs2;
|
|
|
5de29b |
+ if (*wcs2 == L'\0')
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+ wcs2 += 2;
|
|
|
5de29b |
+
|
|
|
5de29b |
+ if (*wcs == wc)
|
|
|
5de29b |
+ return (wchar_t *) wcs;
|
|
|
5de29b |
+ }
|
|
|
5de29b |
+ while (*wcs != L'\0');
|
|
|
5de29b |
+
|
|
|
5de29b |
+ return NULL;
|
|
|
5de29b |
+}
|
|
|
5de29b |
+libc_hidden_def (wcschr)
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..7c648d8
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c
|
|
|
5de29b |
@@ -0,0 +1,26 @@
|
|
|
5de29b |
+/* wcschr.c - Wide Character Search for powerpc32/power6.
|
|
|
5de29b |
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
5de29b |
+ not, see <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <wchar.h>
|
|
|
5de29b |
+
|
|
|
5de29b |
+#define WCSCHR __wcschr_power6
|
|
|
5de29b |
+
|
|
|
5de29b |
+#undef libc_hidden_def
|
|
|
5de29b |
+#define libc_hidden_def(name)
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <sysdeps/powerpc/power6/wcschr.c>
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..e561ced
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c
|
|
|
5de29b |
@@ -0,0 +1,26 @@
|
|
|
5de29b |
+/* wcschr.c - Wide Character Search for powerpc32/power7.
|
|
|
5de29b |
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
5de29b |
+ not, see <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <wchar.h>
|
|
|
5de29b |
+
|
|
|
5de29b |
+#define WCSCHR __wcschr_power7
|
|
|
5de29b |
+
|
|
|
5de29b |
+#undef libc_hidden_def
|
|
|
5de29b |
+#define libc_hidden_def(name)
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <sysdeps/powerpc/power6/wcschr.c>
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..a42f70c
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
|
|
|
5de29b |
@@ -0,0 +1,31 @@
|
|
|
5de29b |
+/* Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; if not, see
|
|
|
5de29b |
+ <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <wchar.h>
|
|
|
5de29b |
+
|
|
|
5de29b |
+#ifndef NOT_IN_libc
|
|
|
5de29b |
+# ifdef SHARED
|
|
|
5de29b |
+# undef libc_hidden_def
|
|
|
5de29b |
+# define libc_hidden_def(name) \
|
|
|
5de29b |
+ __hidden_ver1 (__wcschr_ppc, __GI_wcschr, __wcschr_ppc);
|
|
|
5de29b |
+# endif
|
|
|
5de29b |
+# define WCSCHR __wcschr_ppc
|
|
|
5de29b |
+#endif
|
|
|
5de29b |
+
|
|
|
5de29b |
+extern __typeof (wcschr) __wcschr_ppc;
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <wcsmbs/wcschr.c>
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/Makefile glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/Makefile
|
|
|
5de29b |
index 15b86bd..ff3b8cf 100644
|
|
|
12745e |
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/Makefile
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/Makefile
|
|
|
5de29b |
@@ -9,8 +9,11 @@ sysdep_routines += memcpy-power7 memcpy-a2 memcpy-power6 memcpy-cell \
|
|
|
5de29b |
strnlen-ppc64 strcasecmp-power7 strcasecmp_l-power7 \
|
|
|
5de29b |
strncase-power7 strncase_l-power7 strncmp-power7 \
|
|
|
5de29b |
strncmp-power4 strncmp-ppc64 strchr-power7 strchr-ppc64 \
|
|
|
5de29b |
- strchrnul-power7 strchrnul-ppc64
|
|
|
5de29b |
+ strchrnul-power7 strchrnul-ppc64 wcschr-power7 \
|
|
|
5de29b |
+ wcschr-power6 wcschr-ppc64
|
|
|
5de29b |
|
|
|
5de29b |
CFLAGS-strncase-power7.c += -mcpu=power7 -funroll-loops
|
|
|
5de29b |
CFLAGS-strncase_l-power7.c += -mcpu=power7 -funroll-loops
|
|
|
5de29b |
+CFLAGS-wcschr-power7.c += -mcpu=power7
|
|
|
5de29b |
+CFLAGS-wcschr-power6.c += -mcpu=power6
|
|
|
5de29b |
endif
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
|
|
|
5de29b |
index 9e3b89d..cc932c9 100644
|
|
|
12745e |
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
|
|
|
5de29b |
@@ -191,5 +191,16 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
|
|
|
5de29b |
IFUNC_IMPL_ADD (array, i, strncasecmp_l, 1,
|
|
|
5de29b |
__strncasecmp_l_ppc))
|
|
|
5de29b |
|
|
|
5de29b |
+ /* Support sysdeps/powerpc/powerpc64/multiarch/wcschr.c. */
|
|
|
5de29b |
+ IFUNC_IMPL (i, name, wcschr,
|
|
|
5de29b |
+ IFUNC_IMPL_ADD (array, i, wcschr,
|
|
|
5de29b |
+ hwcap & PPC_FEATURE_HAS_VSX,
|
|
|
5de29b |
+ __wcschr_power7)
|
|
|
5de29b |
+ IFUNC_IMPL_ADD (array, i, wcschr,
|
|
|
5de29b |
+ hwcap & PPC_FEATURE_ARCH_2_05,
|
|
|
5de29b |
+ __wcschr_power6)
|
|
|
5de29b |
+ IFUNC_IMPL_ADD (array, i, wcschr, 1,
|
|
|
5de29b |
+ __wcschr_ppc))
|
|
|
5de29b |
+
|
|
|
5de29b |
return i;
|
|
|
5de29b |
}
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..21d965a
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c
|
|
|
5de29b |
@@ -0,0 +1,19 @@
|
|
|
5de29b |
+/* wcschr.c - Wide Character Search for powerpc64/power6.
|
|
|
5de29b |
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
5de29b |
+ not, see <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c>
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..3407219
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c
|
|
|
5de29b |
@@ -0,0 +1,19 @@
|
|
|
5de29b |
+/* wcschr.c - Wide Character Search for powerpc64/power7.
|
|
|
5de29b |
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
5de29b |
+ not, see <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c>
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..3f1f368
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c
|
|
|
5de29b |
@@ -0,0 +1,18 @@
|
|
|
5de29b |
+/* Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; if not, see
|
|
|
5de29b |
+ <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#include <sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c>
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr.c
|
|
|
5de29b |
new file mode 100644
|
|
|
5de29b |
index 0000000..216d2bc
|
|
|
5de29b |
--- /dev/null
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/multiarch/wcschr.c
|
|
|
5de29b |
@@ -0,0 +1,38 @@
|
|
|
5de29b |
+/* Multiple versions of wcschr
|
|
|
5de29b |
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
|
|
5de29b |
+ This file is part of the GNU C Library.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
5de29b |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
5de29b |
+ License as published by the Free Software Foundation; either
|
|
|
5de29b |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
5de29b |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
5de29b |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
5de29b |
+ Lesser General Public License for more details.
|
|
|
5de29b |
+
|
|
|
5de29b |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
5de29b |
+ License along with the GNU C Library; if not, see
|
|
|
5de29b |
+ <http://www.gnu.org/licenses/>. */
|
|
|
5de29b |
+
|
|
|
5de29b |
+#ifndef NOT_IN_libc
|
|
|
5de29b |
+# include <wchar.h>
|
|
|
5de29b |
+# include <shlib-compat.h>
|
|
|
5de29b |
+# include "init-arch.h"
|
|
|
5de29b |
+
|
|
|
5de29b |
+extern __typeof (wcschr) __wcschr_ppc attribute_hidden;
|
|
|
5de29b |
+extern __typeof (wcschr) __wcschr_power6 attribute_hidden;
|
|
|
5de29b |
+extern __typeof (wcschr) __wcschr_power7 attribute_hidden;
|
|
|
5de29b |
+
|
|
|
5de29b |
+libc_ifunc (wcschr,
|
|
|
5de29b |
+ (hwcap & PPC_FEATURE_HAS_VSX)
|
|
|
5de29b |
+ ? __wcschr_power7 :
|
|
|
5de29b |
+ (hwcap & PPC_FEATURE_ARCH_2_05)
|
|
|
5de29b |
+ ? __wcschr_power6
|
|
|
5de29b |
+ : __wcschr_ppc);
|
|
|
5de29b |
+#else
|
|
|
5de29b |
+#undef libc_hidden_def
|
|
|
5de29b |
+#define libc_hidden_def(a)
|
|
|
5de29b |
+#include <wcsmbs/wcschr.c>
|
|
|
5de29b |
+#endif
|
|
|
12745e |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power6/wcschr.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power6/wcschr.c
|
|
|
5de29b |
index 9136c02..ae04a13 100644
|
|
|
12745e |
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power6/wcschr.c
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power6/wcschr.c
|
|
|
5de29b |
@@ -1 +1 @@
|
|
|
5de29b |
-#include "../../powerpc32/power6/wcschr.c"
|
|
|
5de29b |
+#include <sysdeps/powerpc/power6/wcschr.c>
|
|
|
5de29b |
--
|
|
|
5de29b |
1.8.3.1
|
|
|
5de29b |
|