1 #ifndef LIBRARIES_MATHFFP_H
2 #define LIBRARIES_MATHFFP_H 1
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Definitions for mathffp.library
12 #define FPTEN ((float) 10.0)
13 #define FPONE ((float) 1.0)
14 #define FPHALF ((float) 0.5)
15 #define FPZERO ((float) 0.0)
18 #define E ((float) 2.718281828459045)
20 #define LOG10 ((float) 2.302585092994046)
23 #define PI ((float) 3.141592653589793)
25 #define TWO_PI (((float) 2) * PI)
26 #define PI2 (PI / ((float) 2))
27 #define PI4 (PI / ((float) 4))
29 #define trunc(x) ((int) (x))
30 #define round(x) ((int) ((x) + 0.5))
31 #define itof(i) ((float) (i))
33 /* Now let's define the ANSI C functions and map them to the
34 IEEE signle precision functions
48 #define pow(a,b) SPPow((b),(a))
57 /* FIXME: Should these really be included here. It will generate
58 * include dependencies that are hard to handle
61 /* I also include the function prototypes here! */
63 #ifndef PROTO_MATHFFP_H
64 #include <proto/mathieeedoubbas.h>
67 #ifndef PROTO_MATHFFP_H
68 #include <proto/mathieeedoubtrans.h>
72 #endif /* LIBRARIES_MATHFFP_H */