#ifndef LIBRARIES_MATHIEEEDP_H
#define LIBRARIES_MATHIEEEDP_H

/*
    Copyright © 1995-2001, The AROS Development Team. All rights reserved.
    $Id$

    Desc: Definitions for mathieeedpbas.library and
                          mathieeedptrans.library
    Lang: english
*/

#ifndef PI
#define PI      ((double)3.141592653589793))
#endif

#define TWO_PI  (((double) 2) * PI)
#define PI2     (PI/((double)2))
#define PI4     (PI/((double)4))

#ifndef E
#define E       ((double)2.718281828459045)
#endif

#define LOG10   ((double)2.302585092994046)
#define FPTEN   ((double)10.0)
#define FPONE   ((double)1.0)
#define FPHALF  ((double)0.5)
#define FPZERO  ((double)0.0)
#define trunc(x) ((int)(x))
#define round(x) ((int)((x) + 0.5))
#define itof(i)  ((double)(i))

/* Now let's define the ANSI C functions and map them to the
   IEEE signle precision functions
 */

#define fabs    IEEEDPAbs
#define floor   IEEEDPFloor
#define ceil    IEEEDPCeil

#define cos     IEEEDPCos
#define acos    IEEEDPAcos
#define cosh    IEEEDPCosh

#define sin     IEEEDPSin
#define asin    IEEEDPAsin
#define sinh    IEEEDPSinh

#define tan     IEEEDPTan
#define atan    IEEEDPAtan
#define tanh    IEEEDPTanh

#define exp     IEEEDPExp
#define pow(a,b) IEEEDPPow((b),(a))
#define log     IEEEDPLog
#define log10   IEEEDPLog10
#define sqrt    IEEEDPSqrt


/* I also include the function prototypes here! */

#ifndef PROTO_MATHIEEEDOUBBAS_H
#include <proto/mathieeedoubbas.h>
#endif

#ifndef PROTO_MATHIEEEDOUBTRANS_H
#include <proto/mathieeedoubtrans.h>
#endif

#endif  /* LIBRARIES_MATHIEEEDP_H */
