]>
Commit | Line | Data |
---|---|---|
712a254a | 1 | /* memset variant information on S/390 version. |
04277e02 | 2 | Copyright (C) 2018-2019 Free Software Foundation, Inc. |
712a254a 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/>. */ |
712a254a SL |
18 | |
19 | #if defined USE_MULTIARCH && IS_IN (libc) \ | |
20 | && ! defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT | |
21 | # define HAVE_MEMSET_IFUNC 1 | |
22 | #else | |
23 | # define HAVE_MEMSET_IFUNC 0 | |
24 | #endif | |
25 | ||
26 | #if defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT | |
27 | # define MEMSET_DEFAULT MEMSET_Z196 | |
07be3928 | 28 | # define BZERO_DEFAULT BZERO_Z196 |
712a254a SL |
29 | # define HAVE_MEMSET_Z900_G5 0 |
30 | # define HAVE_MEMSET_Z10 0 | |
31 | # define HAVE_MEMSET_Z196 1 | |
32 | #elif defined HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT | |
33 | # define MEMSET_DEFAULT MEMSET_Z10 | |
07be3928 | 34 | # define BZERO_DEFAULT BZERO_Z10 |
712a254a SL |
35 | # define HAVE_MEMSET_Z900_G5 0 |
36 | # define HAVE_MEMSET_Z10 1 | |
37 | # define HAVE_MEMSET_Z196 HAVE_MEMSET_IFUNC | |
38 | #else | |
39 | # define MEMSET_DEFAULT MEMSET_Z900_G5 | |
07be3928 | 40 | # define BZERO_DEFAULT BZERO_Z900_G5 |
712a254a SL |
41 | # define HAVE_MEMSET_Z900_G5 1 |
42 | # define HAVE_MEMSET_Z10 HAVE_MEMSET_IFUNC | |
43 | # define HAVE_MEMSET_Z196 HAVE_MEMSET_IFUNC | |
44 | #endif | |
45 | ||
46 | #if HAVE_MEMSET_Z10 || HAVE_MEMSET_Z196 | |
47 | # define HAVE_MEMSET_MVCLE 1 | |
48 | #else | |
49 | # define HAVE_MEMSET_MVCLE 0 | |
50 | #endif | |
51 | ||
52 | #if HAVE_MEMSET_Z900_G5 | |
53 | # define MEMSET_Z900_G5 __memset_default | |
07be3928 | 54 | # define BZERO_Z900_G5 __bzero_default |
712a254a SL |
55 | #else |
56 | # define MEMSET_Z900_G5 NULL | |
07be3928 | 57 | # define BZERO_Z900_G5 NULL |
712a254a SL |
58 | #endif |
59 | ||
60 | #if HAVE_MEMSET_Z10 | |
61 | # define MEMSET_Z10 __memset_z10 | |
07be3928 | 62 | # define BZERO_Z10 __bzero_z10 |
712a254a SL |
63 | #else |
64 | # define MEMSET_Z10 NULL | |
07be3928 | 65 | # define BZERO_Z10 NULL |
712a254a SL |
66 | #endif |
67 | ||
68 | #if HAVE_MEMSET_Z196 | |
69 | # define MEMSET_Z196 __memset_z196 | |
07be3928 | 70 | # define BZERO_Z196 __bzero_z196 |
712a254a SL |
71 | #else |
72 | # define MEMSET_Z196 NULL | |
07be3928 | 73 | # define BZERO_Z196 NULL |
712a254a | 74 | #endif |