Blame sysdeps/generic/libm-alias-float128.h

Packit Service 82fcde
/* Define aliases for libm _Float128 functions.
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
#ifndef _LIBM_ALIAS_FLOAT128_H
Packit Service 82fcde
#define _LIBM_ALIAS_FLOAT128_H
Packit Service 82fcde
Packit Service 82fcde
#include <bits/floatn.h>
Packit Service 82fcde
Packit Service 82fcde
/* Define _FloatN / _FloatNx aliases (other than that for _Float128)
Packit Service 82fcde
   for a _Float128 libm function that has internal name FROM ## f128
Packit Service 82fcde
   ## R and public names TO ## suffix ## R for each suffix of a
Packit Service 82fcde
   supported _FloatN / _FloatNx floating-point type with the same
Packit Service 82fcde
   format as _Float128.  */
Packit Service 82fcde
#if __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
Packit Service 82fcde
# define libm_alias_float128_other_r(from, to, r)	\
Packit Service 82fcde
  weak_alias (from ## f128 ## r, to ## f64x ## r)
Packit Service 82fcde
#else
Packit Service 82fcde
# define libm_alias_float128_other_r(from, to, r)
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Likewise, but without the R suffix.  */
Packit Service 82fcde
#define libm_alias_float128_other(from, to)	\
Packit Service 82fcde
  libm_alias_float128_other_r (from, to, )
Packit Service 82fcde
Packit Service 82fcde
/* Define aliases for a _Float128 libm function that has internal name
Packit Service 82fcde
   FROM ## f128 ## R and public names TO ## suffix ## R for each
Packit Service 82fcde
   suffix of a supported floating-point type with the same format as
Packit Service 82fcde
   _Float128.  This should only be used for functions where such
Packit Service 82fcde
   public names exist for _FloatN types, not for
Packit Service 82fcde
   implementation-namespace exported names (where there is one name
Packit Service 82fcde
   per format, not per type) or for obsolescent functions not provided
Packit Service 82fcde
   for _FloatN types.  */
Packit Service 82fcde
#define libm_alias_float128_r(from, to, r)		\
Packit Service 82fcde
  weak_alias (from ## f128 ## r, to ## f128 ## r);	\
Packit Service 82fcde
  libm_alias_float128_other_r (from, to, r)
Packit Service 82fcde
Packit Service 82fcde
/* Likewise, but without the R suffix.  */
Packit Service 82fcde
#define libm_alias_float128(from, to) libm_alias_float128_r (from, to, )
Packit Service 82fcde
Packit Service 82fcde
#endif