]> icculus.org git repositories - taylor/freespace2.git/blob - include/fix.h
Initial revision
[taylor/freespace2.git] / include / fix.h
1 /*
2  * $Logfile: /Freespace2/code/Math/fix.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Routines for fixed point math
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 2     10/07/98 10:53a Dave
15  * Initial checkin.
16  * 
17  * 1     10/07/98 10:49a Dave
18  * 
19  * 4     2/17/97 5:18p John
20  * Added a bunch of RCS headers to a bunch of old files that don't have
21  * them.
22  *
23  * $NoKeywords: $
24  */
25
26 #ifndef _FIX_H
27 #define _FIX_H
28
29 //#include "pstypes.h"
30
31 #define F1_0 65536
32 #define f1_0 65536
33
34 fix fixmul(fix a, fix b);
35 fix fixdiv(fix a, fix b);
36 fix fixmuldiv(fix a, fix b, fix c);
37
38 #define f2i(a) ((int)((a)>>16))
39 #define i2f(a) ((fix)((a)<<16))
40
41 #endif
42