linux: Add fsmount
[glibc.git] / sysdeps / s390 / ifunc-memset.h
blob7098332e92b49e685aaf338b9224b36a6aeae307
1 /* memset variant information on S/390 version.
2 Copyright (C) 2018-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
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
26 #if defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
27 # define MEMSET_DEFAULT MEMSET_Z196
28 # define HAVE_MEMSET_Z900_G5 0
29 # define HAVE_MEMSET_Z10 0
30 # define HAVE_MEMSET_Z196 1
31 #elif defined HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT
32 # define MEMSET_DEFAULT MEMSET_Z10
33 # define HAVE_MEMSET_Z900_G5 0
34 # define HAVE_MEMSET_Z10 1
35 # define HAVE_MEMSET_Z196 HAVE_MEMSET_IFUNC
36 #else
37 # define MEMSET_DEFAULT MEMSET_Z900_G5
38 # define HAVE_MEMSET_Z900_G5 1
39 # define HAVE_MEMSET_Z10 HAVE_MEMSET_IFUNC
40 # define HAVE_MEMSET_Z196 HAVE_MEMSET_IFUNC
41 #endif
43 #if HAVE_MEMSET_Z10 || HAVE_MEMSET_Z196
44 # define HAVE_MEMSET_MVCLE 1
45 #else
46 # define HAVE_MEMSET_MVCLE 0
47 #endif
49 #if HAVE_MEMSET_Z900_G5
50 # define MEMSET_Z900_G5 __memset_default
51 #else
52 # define MEMSET_Z900_G5 NULL
53 #endif
55 #if HAVE_MEMSET_Z10
56 # define MEMSET_Z10 __memset_z10
57 #else
58 # define MEMSET_Z10 NULL
59 #endif
61 #if HAVE_MEMSET_Z196
62 # define MEMSET_Z196 __memset_z196
63 #else
64 # define MEMSET_Z196 NULL
65 #endif