]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/m2/pge-boot/Glibm.c
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / pge-boot / Glibm.c
CommitLineData
1eee94d3
GM
1/* Glibm.c provides access to some libm functions.
2
83ffe9cd 3Copyright (C) 2016-2023 Free Software Foundation, Inc.
1eee94d3
GM
4Contributed by Gaius Mulley <gaius@glam.ac.uk>.
5
6This file is part of GNU Modula-2.
7
8GNU Modula-2 is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3, or (at your option)
11any later version.
12
13GNU Modula-2 is distributed in the hope that it will be useful, but
14WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU Modula-2; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
21
22#define _libm_C
23#include "config.h"
24#include "system.h"
25
26#include "Glibm.h"
27
28double
29libm_pow (double x, double y)
30{
31 return pow (x, y);
32}
33
34float
35libm_powf (float x, float y)
36{
37 return powf (x, y);
38}
39
40long double
41libm_powl (long double x, long double y)
42{
43 return powl (x, y);
44}
45
46double
47libm_sqrt (double x)
48{
49 return sqrt (x);
50}
51
52float
53libm_sqrtf (float x)
54{
55 return sqrtf (x);
56}
57
58long double
59libm_sqrtl (long double x)
60{
61 return sqrtl (x);
62}
63
64double
65libm_asin (double x)
66{
67 return asin (x);
68}
69
70float
71libm_asinf (float x)
72{
73 return asinf (x);
74}
75
76long double
77libm_asinl (long double x)
78{
79 return asinl (x);
80}
81
82double
83libm_atan (double x)
84{
85 return atan (x);
86}
87
88float
89libm_atanf (float x)
90{
91 return atanf (x);
92}
93
94long double
95libm_atanl (long double x)
96{
97 return atanl (x);
98}
99
100double
101libm_atan2 (double x, double y)
102{
103 return atan2 (x, y);
104}
105
106float
107libm_atan2f (float x, float y)
108{
109 return atan2f (x, y);
110}
111
112long double
113libm_atan2l (long double x, long double y)
114{
115 return atan2l (x, y);
116}
117
118double
119libm_sin (double x)
120{
121 return sin (x);
122}
123
124float
125libm_sinf (float x)
126{
127 return sinf (x);
128}
129
130long double
131libm_sinl (long double x)
132{
133 return sinl (x);
134}
135
136double
137libm_cos (double x)
138{
139 return cos (x);
140}
141
142float
143libm_cosf (float x)
144{
145 return cosf (x);
146}
147
148long double
149libm_cosl (long double x)
150{
151 return cosl (x);
152}
153
154double
155libm_tan (double x)
156{
157 return tan (x);
158}
159
160float
161libm_tanf (float x)
162{
163 return tanf (x);
164}
165
166long double
167libm_tanl (long double x)
168{
169 return tanl (x);
170}
171
172float
173libm_floorf (float x)
174{
175 return floorf (x);
176}
177
178double
179libm_floor (double x)
180{
181 return floor (x);
182}
183
184long double
185libm_floorl (long double x)
186{
187 return floorl (x);
188}
189
190float
191libm_expf (float x)
192{
193 return expf (x);
194}
195
196double
197libm_exp (double x)
198{
199 return exp (x);
200}
201
202long double
203libm_expl (long double x)
204{
205 return expl (x);
206}
207
208float
209libm_logf (float x)
210{
211 return logf (x);
212}
213
214double
215libm_log (double x)
216{
217 return log (x);
218}
219
220long double
221libm_logl (long double x)
222{
223 return logl (x);
224}