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