![]() |
FixMul |
||||
Header: | FixMath.h | Carbon status: | Supported | |
Multiplies a variable of type Fixed with another variable of type Fixed or with a variable of type Fract or LongInt.
Fixed FixMul ( Fixed a, Fixed b );
The first operand, which can be a variable of type Fixed or a variable of type Fract or LongInt.
The second operand, which can be a variable of type Fixed or a variable of type Fract or LongInt.
The product of the numbers in a and b. At least one of a and b should be a variable of type Fixed.
The returned value is in the format of a LongInt if one of a or b is a LongInt. It is a Fract number if one of a or b is Fract. It is a Fixed number if both a and b are Fixed numbers.
Overflows are set to the maximum representable value with the correct sign ($80000000 for negative results and $7FFFFFFF for positive results).
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)