#include "camtypes.h"
Go to the source code of this file.
Functions | |
DECLARE_SOURCE ("$Revision: 1282 $") | |
XLONG | Mul (const INT32 operand1, const INT32 operand2) |
Multiplication of two 32-bit signed numbers (xlongs). | |
XLONG | Asl (const INT32 value, UINT32 shift) |
Performs arithmetic shift left. | |
XLONG | Asr (const INT32 value, UINT32 shift) |
Performs arithmetic shift right. | |
INT32 | MulDiv32By32 (const INT32 operand1, const INT32 operand2, const INT32 operand3) |
Multiplies two 32-bit values and divides the result by another 32-bit value. | |
XLONG | MakeXLong (const INT32 operand) |
To convert an INT32 value to an xlong. | |
XLONG | MakeXLong (const double operand) |
To convert a double value to an xlong. |
|
Performs arithmetic shift left.
Definition at line 158 of file ccmaths.cpp. 00159 { 00160 XLONG result; 00161 00162 result = MakeXLong(value); 00163 00164 return (result << shift); 00165 00166 }
|
|
Performs arithmetic shift right.
Definition at line 189 of file ccmaths.cpp. 00190 { 00191 return ( XLONG(value) >> shift); 00192 }
|
|
|
|
To convert a double value to an xlong.
Definition at line 263 of file ccmaths.cpp. 00264 { 00265 xlong result; 00266 00267 DoubleToXlong(operand, result); 00268 00269 return result; 00270 }
|
|
To convert an INT32 value to an xlong.
Definition at line 239 of file ccmaths.cpp. 00240 { 00241 return XLONG(operand); 00242 }
|
|
Multiplication of two 32-bit signed numbers (xlongs).
Definition at line 128 of file ccmaths.cpp. 00129 { 00130 XLONG result; 00131 00132 XMul32(operand1, operand2, result); 00133 00134 return result; 00135 }
|
|
Multiplies two 32-bit values and divides the result by another 32-bit value.
Definition at line 215 of file ccmaths.cpp. 00216 { 00217 return Mul32Div32( operand1, operand2, operand3 ); 00218 }
|