Blame sysdeps/s390/multiarch/utf8-utf16-z9.c

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