]>
Commit | Line | Data |
---|---|---|
cf3ccc31 | 1 | /* wcschr variant information on S/390 version. |
dff8da6b | 2 | Copyright (C) 2018-2024 Free Software Foundation, Inc. |
cf3ccc31 SL |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
6 | modify it under the terms of the GNU Lesser General Public | |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
9 | ||
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | Lesser General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU Lesser General Public | |
16 | License along with the GNU C Library; if not, see | |
5a82c748 | 17 | <https://www.gnu.org/licenses/>. */ |
cf3ccc31 SL |
18 | |
19 | #if defined USE_MULTIARCH && IS_IN (libc) \ | |
20 | && ! defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT | |
21 | # define HAVE_WCSCHR_IFUNC 1 | |
22 | #else | |
23 | # define HAVE_WCSCHR_IFUNC 0 | |
24 | #endif | |
25 | ||
26 | #ifdef HAVE_S390_VX_ASM_SUPPORT | |
27 | # define HAVE_WCSCHR_IFUNC_AND_VX_SUPPORT HAVE_WCSCHR_IFUNC | |
28 | #else | |
29 | # define HAVE_WCSCHR_IFUNC_AND_VX_SUPPORT 0 | |
30 | #endif | |
31 | ||
32 | #if defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT | |
33 | # define WCSCHR_DEFAULT WCSCHR_Z13 | |
34 | /* The z13 ifunc variant is using the common code variant as fallback! */ | |
35 | # define HAVE_WCSCHR_C 1 | |
36 | # define HAVE_WCSCHR_Z13 1 | |
37 | #else | |
38 | # define WCSCHR_DEFAULT WCSCHR_C | |
39 | # define HAVE_WCSCHR_C 1 | |
40 | # define HAVE_WCSCHR_Z13 HAVE_WCSCHR_IFUNC_AND_VX_SUPPORT | |
41 | #endif | |
42 | ||
43 | #if HAVE_WCSCHR_C | |
44 | # define WCSCHR_C __wcschr_c | |
45 | #else | |
46 | # define WCSCHR_C NULL | |
47 | #endif | |
48 | ||
49 | #if HAVE_WCSCHR_Z13 | |
50 | # define WCSCHR_Z13 __wcschr_vx | |
51 | #else | |
52 | # define WCSCHR_Z13 NULL | |
53 | #endif |