]> git.ipfire.org Git - thirdparty/glibc.git/blame - bits/libm-simd-decl-stubs.h
x86-64: Add vector cosh/coshf implementation to libmvec
[thirdparty/glibc.git] / bits / libm-simd-decl-stubs.h
CommitLineData
202d48da 1/* Empty definitions required for __MATHCALL_VEC unfolding in mathcalls.h.
2b778ceb 2 Copyright (C) 2014-2021 Free Software Foundation, Inc.
202d48da
AS
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
202d48da
AS
18
19#ifndef _MATH_H
20# error "Never include <bits/libm-simd-decl-stubs.h> directly;\
21 include <math.h> instead."
22#endif
23
24/* Needed definitions could be generated with:
25 for func in $(grep __MATHCALL_VEC math/bits/mathcalls.h |\
26 sed -r "s|__MATHCALL_VEC.?\(||; s|,.*||"); do
27 echo "#define __DECL_SIMD_${func}";
28 echo "#define __DECL_SIMD_${func}f";
29 echo "#define __DECL_SIMD_${func}l";
30 done
31 */
32
33#ifndef _BITS_LIBM_SIMD_DECL_STUBS_H
34#define _BITS_LIBM_SIMD_DECL_STUBS_H 1
35
36#define __DECL_SIMD_cos
37#define __DECL_SIMD_cosf
38#define __DECL_SIMD_cosl
5c60afdd
JM
39#define __DECL_SIMD_cosf16
40#define __DECL_SIMD_cosf32
41#define __DECL_SIMD_cosf64
fcee5905 42#define __DECL_SIMD_cosf128
5c60afdd
JM
43#define __DECL_SIMD_cosf32x
44#define __DECL_SIMD_cosf64x
45#define __DECL_SIMD_cosf128x
202d48da 46
4b9c2b70
AS
47#define __DECL_SIMD_sin
48#define __DECL_SIMD_sinf
49#define __DECL_SIMD_sinl
5c60afdd
JM
50#define __DECL_SIMD_sinf16
51#define __DECL_SIMD_sinf32
52#define __DECL_SIMD_sinf64
fcee5905 53#define __DECL_SIMD_sinf128
5c60afdd
JM
54#define __DECL_SIMD_sinf32x
55#define __DECL_SIMD_sinf64x
56#define __DECL_SIMD_sinf128x
4b9c2b70 57
c9a8c526
AS
58#define __DECL_SIMD_sincos
59#define __DECL_SIMD_sincosf
60#define __DECL_SIMD_sincosl
5c60afdd
JM
61#define __DECL_SIMD_sincosf16
62#define __DECL_SIMD_sincosf32
63#define __DECL_SIMD_sincosf64
fcee5905 64#define __DECL_SIMD_sincosf128
5c60afdd
JM
65#define __DECL_SIMD_sincosf32x
66#define __DECL_SIMD_sincosf64x
67#define __DECL_SIMD_sincosf128x
c9a8c526 68
6af25acc
AS
69#define __DECL_SIMD_log
70#define __DECL_SIMD_logf
71#define __DECL_SIMD_logl
5c60afdd
JM
72#define __DECL_SIMD_logf16
73#define __DECL_SIMD_logf32
74#define __DECL_SIMD_logf64
fcee5905 75#define __DECL_SIMD_logf128
5c60afdd
JM
76#define __DECL_SIMD_logf32x
77#define __DECL_SIMD_logf64x
78#define __DECL_SIMD_logf128x
6af25acc 79
9c02f663
AS
80#define __DECL_SIMD_exp
81#define __DECL_SIMD_expf
82#define __DECL_SIMD_expl
5c60afdd
JM
83#define __DECL_SIMD_expf16
84#define __DECL_SIMD_expf32
85#define __DECL_SIMD_expf64
fcee5905 86#define __DECL_SIMD_expf128
5c60afdd
JM
87#define __DECL_SIMD_expf32x
88#define __DECL_SIMD_expf64x
89#define __DECL_SIMD_expf128x
9c02f663 90
c10b9b13
AS
91#define __DECL_SIMD_pow
92#define __DECL_SIMD_powf
93#define __DECL_SIMD_powl
5c60afdd
JM
94#define __DECL_SIMD_powf16
95#define __DECL_SIMD_powf32
96#define __DECL_SIMD_powf64
fcee5905 97#define __DECL_SIMD_powf128
5c60afdd
JM
98#define __DECL_SIMD_powf32x
99#define __DECL_SIMD_powf64x
100#define __DECL_SIMD_powf128x
f20f980c
SP
101
102#define __DECL_SIMD_acos
103#define __DECL_SIMD_acosf
104#define __DECL_SIMD_acosl
105#define __DECL_SIMD_acosf16
106#define __DECL_SIMD_acosf32
107#define __DECL_SIMD_acosf64
108#define __DECL_SIMD_acosf128
109#define __DECL_SIMD_acosf32x
110#define __DECL_SIMD_acosf64x
111#define __DECL_SIMD_acosf128x
14631017
SP
112
113#define __DECL_SIMD_atan
114#define __DECL_SIMD_atanf
115#define __DECL_SIMD_atanl
116#define __DECL_SIMD_atanf16
117#define __DECL_SIMD_atanf32
118#define __DECL_SIMD_atanf64
119#define __DECL_SIMD_atanf128
120#define __DECL_SIMD_atanf32x
121#define __DECL_SIMD_atanf64x
122#define __DECL_SIMD_atanf128x
11c01de1
SP
123
124#define __DECL_SIMD_asin
125#define __DECL_SIMD_asinf
126#define __DECL_SIMD_asinl
127#define __DECL_SIMD_asinf16
128#define __DECL_SIMD_asinf32
129#define __DECL_SIMD_asinf64
130#define __DECL_SIMD_asinf128
131#define __DECL_SIMD_asinf32x
132#define __DECL_SIMD_asinf64x
133#define __DECL_SIMD_asinf128x
37475ba8
SP
134
135#define __DECL_SIMD_hypot
136#define __DECL_SIMD_hypotf
137#define __DECL_SIMD_hypotl
138#define __DECL_SIMD_hypotf16
139#define __DECL_SIMD_hypotf32
140#define __DECL_SIMD_hypotf64
141#define __DECL_SIMD_hypotf128
142#define __DECL_SIMD_hypotf32x
143#define __DECL_SIMD_hypotf64x
144#define __DECL_SIMD_hypotf128x
3fc9ccc2
SP
145
146#define __DECL_SIMD_exp2
147#define __DECL_SIMD_exp2f
148#define __DECL_SIMD_exp2l
149#define __DECL_SIMD_exp2f16
150#define __DECL_SIMD_exp2f32
151#define __DECL_SIMD_exp2f64
152#define __DECL_SIMD_exp2f128
153#define __DECL_SIMD_exp2f32x
154#define __DECL_SIMD_exp2f64x
155#define __DECL_SIMD_exp2f128x
8b726453
SP
156
157#define __DECL_SIMD_exp10
158#define __DECL_SIMD_exp10f
159#define __DECL_SIMD_exp10l
160#define __DECL_SIMD_exp10f16
161#define __DECL_SIMD_exp10f32
162#define __DECL_SIMD_exp10f64
163#define __DECL_SIMD_exp10f128
164#define __DECL_SIMD_exp10f32x
165#define __DECL_SIMD_exp10f64x
166#define __DECL_SIMD_exp10f128x
ef7ea9c1
SP
167
168#define __DECL_SIMD_cosh
169#define __DECL_SIMD_coshf
170#define __DECL_SIMD_coshl
171#define __DECL_SIMD_coshf16
172#define __DECL_SIMD_coshf32
173#define __DECL_SIMD_coshf64
174#define __DECL_SIMD_coshf128
175#define __DECL_SIMD_coshf32x
176#define __DECL_SIMD_coshf64x
177#define __DECL_SIMD_coshf128x
202d48da 178#endif