comparison src/libm/math.h @ 2756:a98604b691c8

Expanded the libm support and put it into a separate directory.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 15 Sep 2008 06:33:23 +0000
parents
children 95fccd9bf262
comparison
equal deleted inserted replaced
2755:2a3ec308d995 2756:a98604b691c8
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2006 Sam Lantinga
4
5 This 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 This 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 this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22 #include "SDL_config.h"
23
24 #ifdef HAVE_MATH_H
25 #include <math.h>
26 #else
27
28 extern double __ieee754_log(double x);
29 extern double __ieee754_pow(double x, double y);
30 extern double __ieee754_sqrt(double x);
31
32 #define log(x) __ieee754_log(x)
33 #define pow(x, y) __ieee754_pow(x, y)
34 #define sqrt(x) __ieee754_sqrt(x)
35
36 extern double copysign(double x, double y);
37 extern double cos(double x);
38 extern double fabs(double x);
39 extern double scalbn(double x, int n);
40 extern double sin(double x);
41
42 #endif /* HAVE_MATH_H */
43
44 /* vi: set ts=4 sw=4 expandtab: */