FixDiv
FixDiv Divide one 32-bit quantity by an other
#include <FixMath.h> Toolbox Utilities
Fixed FixDiv(opA, opB );
Fixed opA ; dividend
Fixed opB ; divisor
returns 32-bit quotient (Fixed, long, or Fract)
FixDiv returns the quotient of opA / opB.
opA and...
opB are two 32-bit values, formatted as any of the data types long,
Fixed, or Fract.
Returns: a 32-bit value whose format depends on that of the input
parameters:
opA opB returned
Fixed / Fixed = Fixed
long / long = Fixed
Fract / Fract = Fixed
long / Fixed = long
Fract / Fixed = Fract

Notes: Division by 0 yields 0x7FFFFFFF if opA is positive or 0 and 0x80000000
if opA is negative. Division overflow yields 0x7FFFFFFF for positive
results and 0x80000000 for negative results.