src/libm/math.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 15 Sep 2008 07:34:36 +0000
changeset 2760 02aa80d7905f
parent 2759 95fccd9bf262
child 2768 26861c61142a
permissions -rw-r--r--
Updated Visual C++ build
slouken@2756
     1
/*
slouken@2756
     2
    SDL - Simple DirectMedia Layer
slouken@2756
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@2756
     4
slouken@2756
     5
    This library is free software; you can redistribute it and/or
slouken@2756
     6
    modify it under the terms of the GNU Lesser General Public
slouken@2756
     7
    License as published by the Free Software Foundation; either
slouken@2756
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@2756
     9
slouken@2756
    10
    This library is distributed in the hope that it will be useful,
slouken@2756
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@2756
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@2756
    13
    Lesser General Public License for more details.
slouken@2756
    14
slouken@2756
    15
    You should have received a copy of the GNU Lesser General Public
slouken@2756
    16
    License along with this library; if not, write to the Free Software
slouken@2756
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@2756
    18
slouken@2756
    19
    Sam Lantinga
slouken@2756
    20
    slouken@libsdl.org
slouken@2756
    21
*/
slouken@2756
    22
#include "SDL_config.h"
slouken@2756
    23
slouken@2756
    24
#ifdef HAVE_MATH_H
slouken@2756
    25
#include <math.h>
slouken@2756
    26
#else
slouken@2756
    27
slouken@2760
    28
/* Math routines from uClibc: http://www.uclibc.org */
slouken@2760
    29
slouken@2756
    30
extern double __ieee754_log(double x);
slouken@2756
    31
extern double __ieee754_pow(double x, double y);
slouken@2756
    32
extern double __ieee754_sqrt(double x);
slouken@2756
    33
slouken@2756
    34
#define log(x)      __ieee754_log(x)
slouken@2756
    35
#define pow(x, y)   __ieee754_pow(x, y)
slouken@2756
    36
#define sqrt(x)     __ieee754_sqrt(x)
slouken@2756
    37
slouken@2756
    38
extern double copysign(double x, double y);
slouken@2756
    39
extern double cos(double x);
slouken@2756
    40
extern double fabs(double x);
slouken@2759
    41
extern double floor(double x);
slouken@2756
    42
extern double scalbn(double x, int n);
slouken@2756
    43
extern double sin(double x);
slouken@2756
    44
slouken@2756
    45
#endif /* HAVE_MATH_H */
slouken@2756
    46
slouken@2756
    47
/* vi: set ts=4 sw=4 expandtab: */