1 #ifndef LIBRARIES_MATHIEEESP_H
2 #define LIBRARIES_MATHIEEESP_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Definitions for mathieeespbas.library and
9 mathieeesptrans.library
14 #define PI ((float)3.141592653589793)
17 #define TWO_PI (((float) 2) * PI)
18 #define PI2 (PI/((float)2))
19 #define PI4 (PI/((float)4))
22 #define E ((float)2.718281828459045)
25 #define LOG10 ((float)2.302585092994046)
26 #define FPTEN ((float)10.0)
27 #define FPONE ((float)1.0)
28 #define FPHALF ((float)0.5)
29 #define FPZERO ((float)0.0)
30 #define trunc(x) ((int)(x))
31 #define round(x) ((int)((x) + 0.5))
32 #define itof(i) ((float)(i))
34 /* Now let's define the ANSI C functions and map them to the
35 IEEE signle precision functions
38 #define fabs IEEESPAbs
39 #define floor IEEESPFloor
40 #define ceil IEEESPCeil
43 #define acos IEEESPAcos
44 #define cosh IEEESPCosh
47 #define asin IEEESPAsin
48 #define sinh IEEESPSinh
51 #define atan IEEESPAtan
52 #define tanh IEEESPTanh
55 #define pow(a,b) IEEESPPow((b),(a))
57 #define log10 IEEESPLog10
58 #define sqrt IEEESPSqrt
61 /* I also include the function prototypes here! */
63 #ifndef PROTO_MATHIEEESINGBAS_H
64 #include <proto/mathieeesingbas.h>
67 #ifndef PROTO_MATHIEEESINGTRANS_H
68 #include <proto/mathieeesingtrans.h>
71 #endif /* LIBRARIES_MATHIEEESP_H */