![]() |
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).0
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. (Last Updated 4/14/2000)