|
Packit Service |
82fcde |
/* Conversion between UTF-8 and UTF-32 - multiarch s390 version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
Copyright (C) 2017-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <sysdeps/s390/utf8-utf32-z9.c>
|
|
Packit Service |
82fcde |
#include <ifunc-resolve.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#undef FROM_LOOP
|
|
Packit Service |
82fcde |
#define FROM_LOOP __from_utf8_loop
|
|
Packit Service |
82fcde |
#undef TO_LOOP
|
|
Packit Service |
82fcde |
#define TO_LOOP __to_utf8_loop
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define _SINGLE_NAME(NAME) NAME##_single
|
|
Packit Service |
82fcde |
#define SINGLE_NAME(NAME) _SINGLE_NAME(NAME)
|
|
Packit Service |
82fcde |
strong_alias (SINGLE_NAME (FROM_LOOP_DEFAULT), SINGLE_NAME (FROM_LOOP))
|
|
Packit Service |
82fcde |
strong_alias (SINGLE_NAME (TO_LOOP_DEFAULT), SINGLE_NAME (TO_LOOP))
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Generate ifunc'ed loop functions for FROM/TO_LOOP. */
|
|
Packit Service |
82fcde |
s390_libc_ifunc_expr (FROM_LOOP_DEFAULT, FROM_LOOP,
|
|
Packit Service |
82fcde |
(HAVE_FROM_VX && (hwcap & HWCAP_S390_VX))
|
|
Packit Service |
82fcde |
? FROM_LOOP_VX
|
|
Packit Service |
82fcde |
: (HAVE_FROM_CU && (hwcap & HWCAP_S390_ZARCH
|
|
Packit Service |
82fcde |
&& hwcap & HWCAP_S390_HIGH_GPRS
|
|
Packit Service |
82fcde |
&& hwcap & HWCAP_S390_ETF3EH))
|
|
Packit Service |
82fcde |
? FROM_LOOP_CU
|
|
Packit Service |
82fcde |
: FROM_LOOP_DEFAULT);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
s390_libc_ifunc_expr (TO_LOOP_DEFAULT, TO_LOOP,
|
|
Packit Service |
82fcde |
(HAVE_TO_VX_CU && (hwcap & HWCAP_S390_VXE))
|
|
Packit Service |
82fcde |
? TO_LOOP_VX_CU
|
|
Packit Service |
82fcde |
: (HAVE_TO_VX && (hwcap & HWCAP_S390_VX))
|
|
Packit Service |
82fcde |
? TO_LOOP_VX
|
|
Packit Service |
82fcde |
: TO_LOOP_DEFAULT);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <iconv/skeleton.c>
|