2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
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 */
14 /* This is a short file that contains a few things every mathffp function
17 #ifndef AROS_LIBCALL_H
18 # include <aros/libcall.h>
20 #include <proto/arossupport.h>
21 #ifndef PROTO_MATHFFP_H
22 # include <proto/mathffp.h>
25 #ifndef EXEC_EXECBASE_H
26 # include <exec/execbase.h>
29 # include <exec/types.h>
31 #ifndef EXEC_LIBRARIES_H
32 # include <exec/libraries.h>
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
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 */
68 #include <aros/m68k/libcall_cc.h>
71 #endif /* __MATHFFP_INTERN_H__ */