Blame sysdeps/s390/fpu/math-use-builtins.h

Packit Service b84b05
/* Using math gcc builtins instead of generic implementation.  s390/s390x version.
Packit Service b84b05
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Service b84b05
   This file is part of the GNU C Library.
Packit Service b84b05
Packit Service b84b05
   The GNU C Library is free software; you can redistribute it and/or
Packit Service b84b05
   modify it under the terms of the GNU Lesser General Public
Packit Service b84b05
   License as published by the Free Software Foundation; either
Packit Service b84b05
   version 2.1 of the License, or (at your option) any later version.
Packit Service b84b05
Packit Service b84b05
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service b84b05
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b84b05
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service b84b05
   Lesser General Public License for more details.
Packit Service b84b05
Packit Service b84b05
   You should have received a copy of the GNU Lesser General Public
Packit Service b84b05
   License along with the GNU C Library; if not, see
Packit Service b84b05
   <https://www.gnu.org/licenses/>.  */
Packit Service b84b05
Packit Service b84b05
#ifndef MATH_USE_BUILTINS_S390_H
Packit Service b84b05
#define MATH_USE_BUILTINS_S390_H	1
Packit Service b84b05
Packit Service b84b05
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Service b84b05
Packit Service b84b05
# include <features.h> /* For __GNUC_PREREQ.  */
Packit Service b84b05
Packit Service b84b05
/* GCC emits the z196 zarch "load fp integer" instructions for these
Packit Service b84b05
   builtins if build with at least --march=z196 -mzarch.  Otherwise a
Packit Service b84b05
   function call to libc is emitted.  */
Packit Service b84b05
# define USE_NEARBYINT_BUILTIN 1
Packit Service b84b05
# define USE_NEARBYINTF_BUILTIN 1
Packit Service b84b05
# define USE_NEARBYINTL_BUILTIN 1
Packit Service b84b05
Packit Service 80df49
# define USE_RINT_BUILTIN 1
Packit Service 80df49
# define USE_RINTF_BUILTIN 1
Packit Service 80df49
# define USE_RINTL_BUILTIN 1
Packit Service 80df49
Packit Service d689b9
# define USE_FLOOR_BUILTIN 1
Packit Service d689b9
# define USE_FLOORF_BUILTIN 1
Packit Service d689b9
# define USE_FLOORL_BUILTIN 1
Packit Service d689b9
Packit Service 69fc78
# define USE_CEIL_BUILTIN 1
Packit Service 69fc78
# define USE_CEILF_BUILTIN 1
Packit Service 69fc78
# define USE_CEILL_BUILTIN 1
Packit Service 69fc78
Packit Service b84b05
# if __GNUC_PREREQ (8, 0)
Packit Service b84b05
#  define USE_NEARBYINTF128_BUILTIN 1
Packit Service 80df49
#  define USE_RINTF128_BUILTIN 1
Packit Service d689b9
#  define USE_FLOORF128_BUILTIN 1
Packit Service 69fc78
#  define USE_CEILF128_BUILTIN 1
Packit Service b84b05
# else
Packit Service b84b05
#  define USE_NEARBYINTF128_BUILTIN 0
Packit Service 80df49
#  define USE_RINTF128_BUILTIN 0
Packit Service d689b9
#  define USE_FLOORF128_BUILTIN 0
Packit Service 69fc78
#  define USE_CEILF128_BUILTIN 0
Packit Service b84b05
# endif
Packit Service b84b05
Packit Service b84b05
#else
Packit Service b84b05
Packit Service b84b05
/* Disable the builtins if we do not have the z196 zarch instructions.  */
Packit Service b84b05
# define USE_NEARBYINT_BUILTIN 0
Packit Service b84b05
# define USE_NEARBYINTF_BUILTIN 0
Packit Service b84b05
# define USE_NEARBYINTL_BUILTIN 0
Packit Service b84b05
# define USE_NEARBYINTF128_BUILTIN 0
Packit Service b84b05
Packit Service 80df49
# define USE_RINT_BUILTIN 0
Packit Service 80df49
# define USE_RINTF_BUILTIN 0
Packit Service 80df49
# define USE_RINTL_BUILTIN 0
Packit Service 80df49
# define USE_RINTF128_BUILTIN 0
Packit Service 80df49
Packit Service d689b9
# define USE_FLOOR_BUILTIN 0
Packit Service d689b9
# define USE_FLOORF_BUILTIN 0
Packit Service d689b9
# define USE_FLOORL_BUILTIN 0
Packit Service d689b9
# define USE_FLOORF128_BUILTIN 0
Packit Service d689b9
Packit Service 69fc78
# define USE_CEIL_BUILTIN 0
Packit Service 69fc78
# define USE_CEILF_BUILTIN 0
Packit Service 69fc78
# define USE_CEILL_BUILTIN 0
Packit Service 69fc78
# define USE_CEILF128_BUILTIN 0
Packit Service 69fc78
Packit Service b84b05
#endif /* ! HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT  */
Packit Service b84b05
Packit Service b84b05
#endif /* math-use-builtins.h */