libm-simd-decl-stubs.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* Empty definitions required for __MATHCALL_VEC unfolding in mathcalls.h.
  2. Copyright (C) 2014-2019 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_cosf16
  33. #define __DECL_SIMD_cosf32
  34. #define __DECL_SIMD_cosf64
  35. #define __DECL_SIMD_cosf128
  36. #define __DECL_SIMD_cosf32x
  37. #define __DECL_SIMD_cosf64x
  38. #define __DECL_SIMD_cosf128x
  39. #define __DECL_SIMD_sin
  40. #define __DECL_SIMD_sinf
  41. #define __DECL_SIMD_sinl
  42. #define __DECL_SIMD_sinf16
  43. #define __DECL_SIMD_sinf32
  44. #define __DECL_SIMD_sinf64
  45. #define __DECL_SIMD_sinf128
  46. #define __DECL_SIMD_sinf32x
  47. #define __DECL_SIMD_sinf64x
  48. #define __DECL_SIMD_sinf128x
  49. #define __DECL_SIMD_sincos
  50. #define __DECL_SIMD_sincosf
  51. #define __DECL_SIMD_sincosl
  52. #define __DECL_SIMD_sincosf16
  53. #define __DECL_SIMD_sincosf32
  54. #define __DECL_SIMD_sincosf64
  55. #define __DECL_SIMD_sincosf128
  56. #define __DECL_SIMD_sincosf32x
  57. #define __DECL_SIMD_sincosf64x
  58. #define __DECL_SIMD_sincosf128x
  59. #define __DECL_SIMD_log
  60. #define __DECL_SIMD_logf
  61. #define __DECL_SIMD_logl
  62. #define __DECL_SIMD_logf16
  63. #define __DECL_SIMD_logf32
  64. #define __DECL_SIMD_logf64
  65. #define __DECL_SIMD_logf128
  66. #define __DECL_SIMD_logf32x
  67. #define __DECL_SIMD_logf64x
  68. #define __DECL_SIMD_logf128x
  69. #define __DECL_SIMD_exp
  70. #define __DECL_SIMD_expf
  71. #define __DECL_SIMD_expl
  72. #define __DECL_SIMD_expf16
  73. #define __DECL_SIMD_expf32
  74. #define __DECL_SIMD_expf64
  75. #define __DECL_SIMD_expf128
  76. #define __DECL_SIMD_expf32x
  77. #define __DECL_SIMD_expf64x
  78. #define __DECL_SIMD_expf128x
  79. #define __DECL_SIMD_pow
  80. #define __DECL_SIMD_powf
  81. #define __DECL_SIMD_powl
  82. #define __DECL_SIMD_powf16
  83. #define __DECL_SIMD_powf32
  84. #define __DECL_SIMD_powf64
  85. #define __DECL_SIMD_powf128
  86. #define __DECL_SIMD_powf32x
  87. #define __DECL_SIMD_powf64x
  88. #define __DECL_SIMD_powf128x
  89. #endif