FixMul
FixMul Get fixed-point product of two integers
#include <ToolUtils.h> Toolbox Utilities
Fixed FixMul(a, b );
Fixed a ; integers to . .
Fixed b ; . . . multiply
returns 32-bit value; low word is fraction
FixMul performs fixed-point multiplication on two Fixed values, returning
the signed product (MOD 65536) as a 32-bit Fixed data type. Use this to
format the result as a Fixed data type, in case you need that type for
subsequent operations.
a and . . .
b are Fixed values, in the range -32769 to 32767.xxxx
xxxx is 1- (1/65536)
Returns: a 32-bit Fixed value. The high 16 bits are the integer portion; the
low word is always 0.