MIPS: Add relocation types
[glibc.git] / sysdeps / s390 / ifunc-wmemcmp.h
blob4cacbb3f784c14f6dee0cfb73dd54182a8209a74
1 /* wmemcmp variant information on S/390 version.
2 Copyright (C) 2018-2023 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_Z13_ZARCH_ASM_SUPPORT
21 # define HAVE_WMEMCMP_IFUNC 1
22 #else
23 # define HAVE_WMEMCMP_IFUNC 0
24 #endif
26 #ifdef HAVE_S390_VX_ASM_SUPPORT
27 # define HAVE_WMEMCMP_IFUNC_AND_VX_SUPPORT HAVE_WMEMCMP_IFUNC
28 #else
29 # define HAVE_WMEMCMP_IFUNC_AND_VX_SUPPORT 0
30 #endif
32 #if defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
33 # define WMEMCMP_DEFAULT WMEMCMP_Z13
34 # define HAVE_WMEMCMP_C 0
35 # define HAVE_WMEMCMP_Z13 1
36 #else
37 # define WMEMCMP_DEFAULT WMEMCMP_C
38 # define HAVE_WMEMCMP_C 1
39 # define HAVE_WMEMCMP_Z13 HAVE_WMEMCMP_IFUNC_AND_VX_SUPPORT
40 #endif
42 #if HAVE_WMEMCMP_C
43 # define WMEMCMP_C __wmemcmp_c
44 #else
45 # define WMEMCMP_C NULL
46 #endif
48 #if HAVE_WMEMCMP_Z13
49 # define WMEMCMP_Z13 __wmemcmp_vx
50 #else
51 # define WMEMCMP_Z13 NULL
52 #endif