libm-simd-decl-stubs.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Empty definitions required for __MATHCALL_VEC unfolding in mathcalls.h.
  2. Copyright (C) 2014-2016 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _MATH_H
  16. # error "Never include <bits/libm-simd-decl-stubs.h> directly;\
  17. include <math.h> instead."
  18. #endif
  19. /* Needed definitions could be generated with:
  20. for func in $(grep __MATHCALL_VEC math/bits/mathcalls.h |\
  21. sed -r "s|__MATHCALL_VEC.?\(||; s|,.*||"); do
  22. echo "#define __DECL_SIMD_${func}";
  23. echo "#define __DECL_SIMD_${func}f";
  24. echo "#define __DECL_SIMD_${func}l";
  25. done
  26. */
  27. #ifndef _BITS_LIBM_SIMD_DECL_STUBS_H
  28. #define _BITS_LIBM_SIMD_DECL_STUBS_H 1
  29. #define __DECL_SIMD_cos
  30. #define __DECL_SIMD_cosf
  31. #define __DECL_SIMD_cosl
  32. #define __DECL_SIMD_sin
  33. #define __DECL_SIMD_sinf
  34. #define __DECL_SIMD_sinl
  35. #define __DECL_SIMD_sincos
  36. #define __DECL_SIMD_sincosf
  37. #define __DECL_SIMD_sincosl
  38. #define __DECL_SIMD_log
  39. #define __DECL_SIMD_logf
  40. #define __DECL_SIMD_logl
  41. #define __DECL_SIMD_exp
  42. #define __DECL_SIMD_expf
  43. #define __DECL_SIMD_expl
  44. #define __DECL_SIMD_pow
  45. #define __DECL_SIMD_powf
  46. #define __DECL_SIMD_powl
  47. #endif