1 /* Glibm.c provides access to some libm functions.
3 Copyright (C) 2016-2023 Free Software Foundation, Inc.
4 Contributed by Gaius Mulley <gaius@glam.ac.uk>.
6 This file is part of GNU Modula-2.
8 GNU Modula-2 is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GNU Modula-2 is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Modula-2; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
29 libm_pow (double x
, double y
)
35 libm_powf (float x
, float y
)
41 libm_powl (long double x
, long double y
)
59 libm_sqrtl (long double x
)
77 libm_asinl (long double x
)
95 libm_atanl (long double x
)
101 libm_atan2 (double x
, double y
)
107 libm_atan2f (float x
, float y
)
109 return atan2f (x
, y
);
113 libm_atan2l (long double x
, long double y
)
115 return atan2l (x
, y
);
131 libm_sinl (long double x
)
149 libm_cosl (long double x
)
167 libm_tanl (long double x
)
173 libm_floorf (float x
)
179 libm_floor (double x
)
185 libm_floorl (long double x
)
203 libm_expl (long double x
)
221 libm_logl (long double x
)