2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/Math/fix.h $
15 * Routines for fixed point math
18 * Revision 1.2 2002/06/09 04:41:13 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 2 10/07/98 10:53a Dave
28 * 1 10/07/98 10:49a Dave
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
40 //#include "pstypes.h"
45 fix fixmul(fix a, fix b);
46 fix fixdiv(fix a, fix b);
47 fix fixmuldiv(fix a, fix b, fix c);
49 #define f2i(a) ((int)((a)>>16))
50 #define i2f(a) ((fix)((a)<<16))