AHI/HDAudio: fixes for ATI south bridge controller
[AROS.git] / compiler / include / libraries / mathffp.h
blob96e822631b92946daee070ff2f16ad6522c9827e
1 #ifndef LIBRARIES_MATHFFP_H
2 #define LIBRARIES_MATHFFP_H 1
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Definitions for mathffp.library
9 Lang: english
12 #define FPTEN ((float) 10.0)
13 #define FPONE ((float) 1.0)
14 #define FPHALF ((float) 0.5)
15 #define FPZERO ((float) 0.0)
17 #ifndef E
18 #define E ((float) 2.718281828459045)
19 #endif
20 #define LOG10 ((float) 2.302585092994046)
22 #ifndef PI
23 #define PI ((float) 3.141592653589793)
24 #endif
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
37 #define fabs SPAbs
38 #define floor SPFloor
39 #define ceil SPCeil
41 #define tan SPTan
42 #define atan SPAtan
43 #define cos SPCos
44 #define acos SPAcos
45 #define sin SPSin
46 #define asin SPAsin
47 #define exp SPExp
48 #define pow(a,b) SPPow((b),(a))
49 #define log SPLog
50 #define log10 SPLog10
51 #define sqrt SPSqrt
53 #define sinh SPSinh
54 #define cosh SPCosh
55 #define tanh SPTanh
57 /* FIXME: Should these really be included here. It will generate
58 * include dependencies that are hard to handle
60 #if 0
61 /* I also include the function prototypes here! */
63 #ifndef PROTO_MATHFFP_H
64 #include <proto/mathieeedoubbas.h>
65 #endif
67 #ifndef PROTO_MATHFFP_H
68 #include <proto/mathieeedoubtrans.h>
69 #endif
70 #endif
72 #endif /* LIBRARIES_MATHFFP_H */