2 * $Logfile: /Freespace2/code/Math/Fix.cpp $
7 * Code to deal with 16.16 fixed point numbers.
10 * Revision 1.2 2002/05/07 03:16:46 theoddone33
11 * The Great Newline Fix
13 * Revision 1.1.1.1 2002/05/03 03:28:09 root
17 * 2 10/07/98 10:53a Dave
20 * 1 10/07/98 10:49a Dave
22 * 2 2/17/97 5:18p John
23 * Added a bunch of RCS headers to a bunch of old files that don't have
37 fix fixmul(fix a, fix b)
40 tmp = (longlong)a * (longlong)b;
41 return (fix)(tmp>>16);
44 fix fixdiv(fix a, fix b)
46 return MulDiv(a,65536,b);
49 fix fixmuldiv(fix a, fix b,fix c)