revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / mathffp / mathffp_intern.h
blob95f9b87f55eba4c4b7277cafa9e73ce921be2de0
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
5 #ifndef __MATHFFP_INTERN_H__
6 #define __MATHFFP_INTERN_H__
8 /* the following line is necessary so that the function headers are
9 created correctly and the functions can be compiled properly */
11 #define float LONG
14 /* This is a short file that contains a few things every mathffp function
15 needs */
17 #ifndef AROS_LIBCALL_H
18 # include <aros/libcall.h>
19 #endif
20 #include <proto/arossupport.h>
21 #ifndef PROTO_MATHFFP_H
22 # include <proto/mathffp.h>
23 #endif
25 #ifndef EXEC_EXECBASE_H
26 # include <exec/execbase.h>
27 #endif
28 #ifndef EXEC_TYPES_H
29 # include <exec/types.h>
30 #endif
31 #ifndef EXEC_LIBRARIES_H
32 # include <exec/libraries.h>
33 #endif
34 #ifndef DOS_DOS_H
35 # include <dos/dos.h>
36 #endif
38 #include <aros/debug.h>
40 #include <proto/exec.h>
42 /* Replace obsolete struct LibHeader with struct Library */
43 #define LibHeader Library
45 #define FFPMantisse_Mask 0xFFFFFF00 /* 24 bit for the mantisse */
46 #define FFPExponent_Mask 0x0000007F /* 7 bit for the exponent */
47 #define FFPSign_Mask 0x00000080 /* 1 bit for the sign */
49 #define IEEESPMantisse_Mask 0x007FFFFF /* 23 bit for the mantisse */
50 #define IEEESPExponent_Mask 0x7F800000 /* 8 bit for the exponent */
51 #define IEEESPSign_Mask 0x80000000 /* 1 bit for the sign */
53 #define Zero_Bit 0x00000004 /* Flags of the 680xx CPU */
54 #define Negative_Bit 0x00000008
55 #define Overflow_Bit 0x00000002
57 /* some Motorola fast floating point format constants */
58 #define SP_zero 0x00000000
59 #define SP_pinfty 0xffffff7f
61 /* basic constants */
62 #define one 0x80000041 /* 1.00000000000000000000e+00 */
63 #define minusone 0x800000c1 /* -1.00000000000000000000e+00 */
64 #define two 0x80000042 /* 2.0 */
65 #define onehalf 0x80000040 /* 0.5 */
67 #ifdef __mc68000
68 #include <aros/m68k/libcall_cc.h>
69 #endif
71 #endif /* __MATHFFP_INTERN_H__ */