Blame sysdeps/x86/fpu/bits/math-vector.h

Packit 6c4009
/* Platform-specific SIMD declarations of math functions.
Packit 6c4009
   Copyright (C) 2014-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
#ifndef _MATH_H
Packit 6c4009
# error "Never include <bits/math-vector.h> directly;\
Packit 6c4009
 include <math.h> instead."
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Get default empty definitions for simd declarations.  */
Packit 6c4009
#include <bits/libm-simd-decl-stubs.h>
Packit 6c4009
Packit 6c4009
#if defined __x86_64__ && defined __FAST_MATH__
Packit 6c4009
# if defined _OPENMP && _OPENMP >= 201307
Packit 6c4009
/* OpenMP case.  */
Packit 6c4009
#  define __DECL_SIMD_x86_64 _Pragma ("omp declare simd notinbranch")
Packit 6c4009
# elif __GNUC_PREREQ (6,0)
Packit 6c4009
/* W/o OpenMP use GCC 6.* __attribute__ ((__simd__)).  */
Packit 6c4009
#  define __DECL_SIMD_x86_64 __attribute__ ((__simd__ ("notinbranch")))
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# ifdef __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_cos
Packit 6c4009
#  define __DECL_SIMD_cos __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_cosf
Packit 6c4009
#  define __DECL_SIMD_cosf __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_sin
Packit 6c4009
#  define __DECL_SIMD_sin __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_sinf
Packit 6c4009
#  define __DECL_SIMD_sinf __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_sincos
Packit 6c4009
#  define __DECL_SIMD_sincos __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_sincosf
Packit 6c4009
#  define __DECL_SIMD_sincosf __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_log
Packit 6c4009
#  define __DECL_SIMD_log __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_logf
Packit 6c4009
#  define __DECL_SIMD_logf __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_exp
Packit 6c4009
#  define __DECL_SIMD_exp __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_expf
Packit 6c4009
#  define __DECL_SIMD_expf __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_pow
Packit 6c4009
#  define __DECL_SIMD_pow __DECL_SIMD_x86_64
Packit 6c4009
#  undef __DECL_SIMD_powf
Packit 6c4009
#  define __DECL_SIMD_powf __DECL_SIMD_x86_64
Packit 6c4009
Packit 6c4009
# endif
Packit 6c4009
#endif