1 #ifndef LIBRARIES_MATHIEEEDP_H
2 #define LIBRARIES_MATHIEEEDP_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Definitions for mathieeedpbas.library and
9 mathieeedptrans.library
14 #define PI ((double)3.141592653589793)
17 #define TWO_PI (((double) 2) * PI)
18 #define PI2 (PI/((double)2))
19 #define PI4 (PI/((double)4))
22 #define E ((double)2.718281828459045)
25 #define LOG10 ((double)2.302585092994046)
26 #define FPTEN ((double)10.0)
27 #define FPONE ((double)1.0)
28 #define FPHALF ((double)0.5)
29 #define FPZERO ((double)0.0)
30 #define trunc(x) ((int)(x))
31 #define round(x) ((int)((x) + 0.5))
32 #define itof(i) ((double)(i))
34 /* Now let's define the ANSI C functions and map them to the
35 IEEE signle precision functions
38 #define fabs IEEEDPAbs
39 #define floor IEEEDPFloor
40 #define ceil IEEEDPCeil
43 #define acos IEEEDPAcos
44 #define cosh IEEEDPCosh
47 #define asin IEEEDPAsin
48 #define sinh IEEEDPSinh
51 #define atan IEEEDPAtan
52 #define tanh IEEEDPTanh
55 #define pow(a,b) IEEEDPPow((b),(a))
57 #define log10 IEEEDPLog10
58 #define sqrt IEEEDPSqrt
61 /* I also include the function prototypes here! */
63 #ifndef PROTO_MATHIEEEDOUBBAS_H
64 #include <proto/mathieeedoubbas.h>
67 #ifndef PROTO_MATHIEEEDOUBTRANS_H
68 #include <proto/mathieeedoubtrans.h>
71 #endif /* LIBRARIES_MATHIEEEDP_H */