Update to lasso handling. Adjust scroll amount based on difference between mouse...
[AROS.git] / rom / mathffp / mathffp_intern.h
blob672c5b002f1ec36b72d76d590ae60cc44d70731b
1 /*
2 Copyright © 1995-2004, 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 <proto/exec.h>
39 #include <libcore/base.h>
42 This is the MAthffpBase structure. It is documented here because it is
43 completely private. Applications should treat it as a struct Library, and
44 use the mathffp.library functions to get information.
47 #undef SysBase
48 #define SysBase (MathBase->lh_SysBase)
50 #define FFPMantisse_Mask 0xFFFFFF00 /* 24 bit for the mantisse */
51 #define FFPExponent_Mask 0x0000007F /* 7 bit for the exponent */
52 #define FFPSign_Mask 0x00000080 /* 1 bit for the sign */
54 #define IEEESPMantisse_Mask 0x007FFFFF /* 23 bit for the mantisse */
55 #define IEEESPExponent_Mask 0x7F800000 /* 8 bit for the exponent */
56 #define IEEESPSign_Mask 0x80000000 /* 1 bit for the sign */
58 #define Zero_Bit 0x00000004 /* Flags of the 680xx CPU */
59 #define Negative_Bit 0x00000008
60 #define Overflow_Bit 0x00000002
62 /* some Motorla fast floting point format constants */
63 #define SP_zero 0x00000000
64 #define SP_pinfty 0xffffff7f
66 /* basic constants */
67 #define one 0x80000041 /* 1.00000000000000000000e+00 */
68 #define minusone 0x800000c1 /* -1.00000000000000000000e+00 */
69 #define two 0x80000042 /* 2.0 */
70 #define onehalf 0x80000040 /* 0.5 */
72 #endif /* __MATHFFP_INTERN_H__ */