]> icculus.org git repositories - taylor/freespace2.git/blob - include/fix.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / fix.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Math/fix.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Routines for fixed point math
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:13  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 2     10/07/98 10:53a Dave
26  * Initial checkin.
27  * 
28  * 1     10/07/98 10:49a Dave
29  * 
30  * 4     2/17/97 5:18p John
31  * Added a bunch of RCS headers to a bunch of old files that don't have
32  * them.
33  *
34  * $NoKeywords: $
35  */
36
37 #ifndef _FIX_H
38 #define _FIX_H
39
40 //#include "pstypes.h"
41
42 #define F1_0 65536
43 #define f1_0 65536
44
45 fix fixmul(fix a, fix b);
46 fix fixdiv(fix a, fix b);
47 fix fixmuldiv(fix a, fix b, fix c);
48
49 #define f2i(a) ((int)((a)>>16))
50 #define i2f(a) ((fix)((a)<<16))
51
52 #endif
53