#include "camtypes.h"
Go to the source code of this file.
Defines | |
#define | F24ASSIGN(it) it |
#define | F24ASSIGNTHIS *this |
Functions | |
fixed24 | operator+ (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the addition operator for FIXED24s. | |
fixed24 | operator- (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the subtract operator for FIXED24s. | |
fixed24 | operator- (const fixed24 &operand) |
Overloading the negation operator for FIXED24s. Should be inline. | |
fixed24 | operator * (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the multiplication operator for FIXED24s. | |
fixed24 | operator/ (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the division operator for FIXED24s. | |
fixed24 | operator>> (const fixed24 &operand1, UINT32 operand2) |
Overloading the >> operator to mean shift right for FIXED24s. | |
fixed24 | operator<< (const fixed24 &operand1, UINT32 operand2) |
Overloading the << operator to mean shift left for FIXED24s. | |
INT32 | operator== (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the equality operator for FIXED24s. | |
INT32 | operator== (const fixed24 &operand1, const short operand2) |
Overloading the equality operator for FIXED24s. | |
INT32 | operator!= (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the inequality operator for FIXED24s. | |
INT32 | operator!= (const fixed24 &operand1, const short operand2) |
Overloading the inequality operator for FIXED24s. | |
INT32 | operator> (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the greater-than operator for FIXED24s. | |
INT32 | operator> (const fixed24 &operand1, const short operand2) |
Overloading the greater-than operator for FIXED24s. | |
INT32 | operator< (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the less-than operator for FIXED24s. | |
INT32 | operator< (const fixed24 &operand1, const short operand2) |
Overloading the less-than operator for FIXED24s. | |
INT32 | operator>= (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the greater-than-equal-to operator for FIXED24s. | |
INT32 | operator>= (const fixed24 &operand1, const short operand2) |
Overloading the greater-than-equal-to operator for FIXED24s. | |
INT32 | operator<= (const fixed24 &operand1, const fixed24 &operand2) |
Overloading the less-than-equal-to operator for FIXED24s. | |
INT32 | operator<= (const fixed24 &operand1, const short operand2) |
Overloading the less-than-equal-to operator for FIXED24s. | |
Variables | |
const INT32 | FIXED24_ONE = 0x01000000L |
|
Definition at line 116 of file fixed24.cpp. |
|
Definition at line 117 of file fixed24.cpp. |
|
Overloading the multiplication operator for FIXED24s.
Definition at line 323 of file fixed24.cpp. 00324 { 00325 fixed24 result; 00326 00327 F24ASSIGN(result) = Fixed24Mul( operand1, operand2 ); 00328 00329 return result; 00330 }
|
|
Overloading the inequality operator for FIXED24s.
Definition at line 491 of file fixed24.cpp. 00492 { 00493 return operand1.all != SHORT_FIXED24( operand2 ); 00494 }
|
|
Overloading the inequality operator for FIXED24s.
Definition at line 469 of file fixed24.cpp.
|
|
Overloading the addition operator for FIXED24s.
Definition at line 250 of file fixed24.cpp. 00251 { 00252 fixed24 result; 00253 00254 result.all = operand1.all + operand2.all; 00255 00256 return result; 00257 }
|
|
Overloading the negation operator for FIXED24s. Should be inline.
Definition at line 298 of file fixed24.cpp.
|
|
Overloading the subtract operator for FIXED24s.
Definition at line 274 of file fixed24.cpp. 00275 { 00276 fixed24 result; 00277 00278 result.all = operand1.all - operand2.all; 00279 00280 return result; 00281 }
|
|
Overloading the division operator for FIXED24s.
Definition at line 348 of file fixed24.cpp. 00349 { 00350 fixed24 result; 00351 00352 F24ASSIGN(result) = Fixed24Div( operand1, operand2 ); 00353 00354 return result; 00355 00356 }
|
|
Overloading the less-than operator for FIXED24s.
Definition at line 577 of file fixed24.cpp. 00578 { 00579 return operand1.all < SHORT_FIXED24( operand2 ); 00580 }
|
|
Overloading the less-than operator for FIXED24s.
Definition at line 555 of file fixed24.cpp.
|
|
Overloading the << operator to mean shift left for FIXED24s.
Definition at line 399 of file fixed24.cpp. 00400 { 00401 fixed24 result; 00402 00403 result.all = operand1.all << operand2; 00404 00405 return result; 00406 }
|
|
Overloading the less-than-equal-to operator for FIXED24s.
Definition at line 663 of file fixed24.cpp. 00664 { 00665 return operand1.all <= SHORT_FIXED24( operand2 ); 00666 }
|
|
Overloading the less-than-equal-to operator for FIXED24s.
Definition at line 641 of file fixed24.cpp.
|
|
Overloading the equality operator for FIXED24s.
Definition at line 448 of file fixed24.cpp. 00449 { 00450 return operand1.all == SHORT_FIXED24( operand2 ); 00451 }
|
|
Overloading the equality operator for FIXED24s.
Definition at line 426 of file fixed24.cpp.
|
|
Overloading the greater-than operator for FIXED24s.
Definition at line 534 of file fixed24.cpp. 00535 { 00536 return operand1.all > SHORT_FIXED24(operand2); 00537 }
|
|
Overloading the greater-than operator for FIXED24s.
Definition at line 512 of file fixed24.cpp.
|
|
Overloading the greater-than-equal-to operator for FIXED24s.
Definition at line 620 of file fixed24.cpp. 00621 { 00622 return operand1.all >= SHORT_FIXED24( operand2 ); 00623 }
|
|
Overloading the greater-than-equal-to operator for FIXED24s.
Definition at line 598 of file fixed24.cpp.
|
|
Overloading the >> operator to mean shift right for FIXED24s.
Definition at line 374 of file fixed24.cpp. 00375 { 00376 fixed24 result; 00377 00378 result.all = operand1.all >> operand2; 00379 00380 return result; 00381 }
|
|
Definition at line 120 of file fixed24.cpp. |