xlong Class Reference

#include <xlong.h>

List of all members.

Public Member Functions

 xlong ()
 xlong (const xlong &)
 Default Constructor for the XLONG class. Its do not actually do anything! Initialise an XLONG to a specific value.
 xlong (INT32)
 Initialise an XLONG to a specific value.
 xlong (INT32)
void ToString (String *out) const
 Converts value of XLONG into an ASCII string representing it.
xlong &CCAPI operator= (const xlong &)
 Overloading the assignment operator for XLONGs.
xlong &CCAPI operator= (INT32)
 Overloading the assignment operator for XLONGs.
xlong &CCAPI operator+= (const xlong &)
 Overloading the plus-equals operator for XLONGs.
xlong &CCAPI operator+= (INT32)
 Overloading the plus-equals operator for XLONGs.
xlong &CCAPI operator-= (const xlong &)
 Overloading the minus-equals operator for XLONGs.
xlong &CCAPI operator-= (INT32)
 Overloading the minus-equals operator for XLONGs.
xlong &CCAPI operator *= (const xlong &)
 Overloading the times-equals operator for XLONGs.
xlong &CCAPI operator *= (INT32)
 Overloading the times-equals operator for XLONGs.
xlong &CCAPI operator *= (fixed16)
xlong &CCAPI operator/= (const xlong &)
 Overloading the divide-equals operator for XLONGs.
xlong &CCAPI operator/= (INT32)
 Overloading the divide-equals operator for XLONGs.
xlong &CCAPI operator<<= (UINT32)
 Overloading the left-shift-equals operator for XLONGs.
xlong &CCAPI operator>>= (UINT32)
 Overloading the right-shift-equals operator for XLONGs.
xlong &CCAPI operator++ ()
 Overloading the prefix plus-plus operator for XLONGs.
xlong CCAPI operator++ (INT32)
 Overloading the postfix plus-plus operator for XLONGs.
xlong &CCAPI operator-- ()
 Overloading the prefix minus-minus operator for XLONGs.
xlong CCAPI operator-- (INT32)
 Overloading the postfix minus-minus operator for XLONGs.
INT32 MakeLong () const
 To convert an XLONG value to a INT32.
INT32 MakeInt () const
 To convert an XLONG value to an integer.
double MakeDouble () const
 To convert an XLONG value to a double.
fixed16 MakeFixed16 () const
 To convert an XLONG value to a FIXED16.
 operator INT32 () const
void GetHighLow (INT32 *pdwHigh, UINT32 *pdwLow) const
 Used when serializing XLONGs.
void SetHighLow (INT32 dwHigh, UINT32 dwLow)
 Used when serializing XLONGs.

Private Attributes

UINT32 low
INT32 high

Friends

xlong CCAPI operator+ (const xlong &, const xlong &)
 Overloading the addition operator for XLONGs.
xlong CCAPI operator+ (const xlong &, INT32)
 Overloading the addition operator for XLONGs.
xlong CCAPI operator+ (const xlong &, INT32)
 Overloading the addition operator for XLONGs.
xlong CCAPI operator- (const xlong &, const xlong &)
 Overloading the subtract operator for XLONGs.
xlong CCAPI operator- (const xlong &, INT32)
 Overloading the subtract operator for XLONGs.
xlong CCAPI operator- (const xlong &, INT32)
 Overloading the subtract operator for XLONGs.
xlong CCAPI operator- (const xlong &)
 Overloading the negation operator for XLONGs.
xlong CCAPI operator * (const xlong &, const xlong &)
 Overloading the multiplication operator for XLONGs.
xlong CCAPI operator * (const xlong &, INT32)
 Overloading the multiplication operator for XLONGs.
xlong CCAPI operator * (const xlong &, INT32)
 Overloading the multiplication operator for XLONGs.
xlong CCAPI operator * (const xlong &, fixed16)
 Overloading the multiplication operator for XLONGs and FIXED16s.
xlong CCAPI operator/ (const xlong &, const xlong &)
 Overloading the division operator for XLONGs.
xlong CCAPI operator/ (const xlong &, INT32)
 Overloading the division operator for XLONGs.
xlong CCAPI operator/ (const xlong &, INT32)
 Overloading the division operator for XLONGs.
xlong CCAPI operator>> (const xlong &, UINT32)
 Overloading the >> operator to mean shift right for XLONGs.
xlong CCAPI operator<< (const xlong &, UINT32)
 Overloading the << operator to mean shift left for XLONGs.
INT32 CCAPI operator== (const xlong &, const xlong &)
 Overloading the postfix equality operator for XLONGs.
INT32 CCAPI operator== (const xlong &, INT32)
 Overloading the postfix equality operator for XLONGs.
INT32 CCAPI operator== (const xlong &, INT32)
 Overloading the postfix equality operator for XLONGs.
INT32 CCAPI operator!= (const xlong &, const xlong &)
 Overloading the postfix inequality operator for XLONGs.
INT32 CCAPI operator!= (const xlong &, INT32)
 Overloading the postfix inequality operator for XLONGs.
INT32 CCAPI operator!= (const xlong &, INT32)
 Overloading the postfix inequality operator for XLONGs.
INT32 CCAPI operator< (const xlong &, const xlong &)
 Overloading the postfix less-than operator for XLONGs.
INT32 CCAPI operator< (const xlong &, INT32)
 Overloading the postfix less-than operator for XLONGs.
INT32 CCAPI operator< (const xlong &, INT32)
 Overloading the postfix less-than operator for XLONGs.
INT32 CCAPI operator> (const xlong &, const xlong &)
 Overloading the postfix greater-than operator for XLONGs.
INT32 CCAPI operator> (const xlong &, INT32)
 Overloading the postfix greater-than operator for XLONGs.
INT32 CCAPI operator> (const xlong &, INT32)
 Overloading the postfix greater-than operator for XLONGs.
INT32 CCAPI operator<= (const xlong &, const xlong &)
 Overloading the postfix less-than--or-equal operator for XLONGs.
INT32 CCAPI operator<= (const xlong &, INT32)
 Overloading the postfix less-than--or-equal operator for XLONGs.
INT32 CCAPI operator<= (const xlong &, INT32)
 Overloading the postfix less-than--or-equal operator for XLONGs.
INT32 CCAPI operator>= (const xlong &, const xlong &)
 Overloading the postfix greater-than--or-equal operator for XLONGs.
INT32 CCAPI operator>= (const xlong &, INT32)
 Overloading the postfix greater-than--or-equal operator for XLONGs.
INT32 CCAPI operator>= (const xlong &, INT32)
 Overloading the postfix greater-than--or-equal operator for XLONGs.


Detailed Description

Definition at line 135 of file xlong.h.


Constructor & Destructor Documentation

xlong::xlong  )  [inline]
 

Definition at line 143 of file xlong.h.

00143 {};             

xlong::xlong const xlong initValue  )  [inline]
 

Default Constructor for the XLONG class. Its do not actually do anything! Initialise an XLONG to a specific value.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
Parameters:
XLONG initilisation value. [INPUTS]
None [OUTPUTS]
Returns:
None.

Errors: None.

Definition at line 275 of file xlong.h.

00276 {                
00277     this->low = initValue.low;
00278     this->high = initValue.high;
00279 }

xlong::xlong INT32  initValue  )  [inline]
 

Initialise an XLONG to a specific value.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
Parameters:
Long initilisation value. [INPUTS]
None [OUTPUTS]
Returns:
None.

Errors: None.

Definition at line 299 of file xlong.h.

00300 {                
00301     xlong temp;
00302 
00303     LongToXlong(initValue, temp);       // convert initValue from INT32 to xlong 
00304 
00305     this->low = temp.low;
00306     this->high = temp.high;
00307 }

xlong::xlong INT32   )  [inline]
 


Member Function Documentation

void xlong::GetHighLow INT32 *  pdwHigh,
UINT32 pdwLow
const [inline]
 

Used when serializing XLONGs.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/4/94
Parameters:
Pointers to a INT32 and UINT32 that will receive the high and low parts [INPUTS] of the xlong.
- [OUTPUTS]
Returns:
-

Errors: -

See also:
xlong::SetHighLow

Definition at line 428 of file xlong.h.

00429 {
00430     *pdwHigh = high;
00431     *pdwLow = low;
00432 }

double xlong::MakeDouble  )  const [inline]
 

To convert an XLONG value to a double.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
XlongToDouble()
Parameters:
None. [INPUTS]
None. [OUTPUTS]
Returns:
INT32 value.

Errors: None.

Definition at line 407 of file xlong.h.

00408 {
00409     return XlongToDouble(*this); 
00410 }

fixed16 xlong::MakeFixed16  )  const
 

To convert an XLONG value to a FIXED16.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
None. [INPUTS]
None. [OUTPUTS]
Returns:
INT32 value.

Errors: None.

Definition at line 1674 of file xlong.cpp.

01675 {  
01676     return fixed16( (short)this->low );
01677 }

INT32 xlong::MakeInt  )  const [inline]
 

To convert an XLONG value to an integer.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
MakeLong
Parameters:
None. [INPUTS]
None. [OUTPUTS]
Returns:
INT32 value.

Errors: None. If XLONG is not in the integer range this will produce some unexpected results.

Definition at line 383 of file xlong.h.

00384 { 
00385     return (INT32) this->MakeLong();    
00386 }                              

INT32 xlong::MakeLong  )  const [inline]
 

To convert an XLONG value to a INT32.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
XlonToLong()
Parameters:
None. [INPUTS]
None. [OUTPUTS]
Returns:
Long value.

Errors: None.

Definition at line 357 of file xlong.h.

00358 {
00359     return XlongToLong( *this );
00360 }

xlong& CCAPI xlong::operator *= fixed16   ) 
 

xlong & xlong::operator *= INT32  operand  ) 
 

Overloading the times-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h
Parameters:
multiplier - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 882 of file xlong.cpp.

00883 {
00884     xlong temp;
00885           
00886     LongToXlong(operand, temp);
00887 
00888     XMul64One(temp, *this);
00889 
00890     return *this;
00891 }

xlong & xlong::operator *= const xlong operand  ) 
 

Overloading the times-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
multiplier - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 856 of file xlong.cpp.

00857 {
00858     XMul64One(operand, *this);
00859 
00860     return *this;
00861 }

xlong::operator INT32  )  const [inline]
 

Definition at line 235 of file xlong.h.

00235 { return (INT32)low; }

xlong xlong::operator++ INT32  dummy  ) 
 

Overloading the postfix plus-plus operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
dummy value to distinguish between pre- and post-fix application. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of increment.

Errors: None.

Definition at line 1074 of file xlong.cpp.

01075 {
01076     xlong result = *this;
01077     
01078     XlongIncrement(*this);
01079     
01080     return result;
01081 }

xlong & xlong::operator++  ) 
 

Overloading the prefix plus-plus operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
None. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of increment.

Errors: None.

Definition at line 1048 of file xlong.cpp.

01049 {
01050     XlongIncrement(*this);
01051     
01052     return *this;
01053 }

xlong & xlong::operator+= INT32  operand  ) 
 

Overloading the plus-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h
Parameters:
lvalue to be incremented [INPUTS] operand to be added - rhs of assignment.
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 769 of file xlong.cpp.

00770 {                              
00771     xlong temp;
00772           
00773     LongToXlong(operand, temp);
00774     
00775     XlongAddOne(temp, *this);
00776 
00777     return *this;
00778 }

xlong & xlong::operator+= const xlong operand  ) 
 

Overloading the plus-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
lvalue to be incremented [INPUTS] operand to be added - rhs of assignment.
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 742 of file xlong.cpp.

00743 {
00744     XlongAddOne(operand, *this);
00745 
00746     return *this;
00747 }

xlong xlong::operator-- INT32  dummy  ) 
 

Overloading the postfix minus-minus operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
dummy value to distinguish between pre- and post-fix application. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of decrement.

Errors: None.

Definition at line 1128 of file xlong.cpp.

01129 {
01130     xlong result = *this;
01131     
01132     XlongDecrement(*this);
01133     
01134     return result;
01135 }

xlong & xlong::operator--  ) 
 

Overloading the prefix minus-minus operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
None. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of decrement.

Errors: None.

Definition at line 1102 of file xlong.cpp.

01103 {
01104     XlongDecrement(*this);
01105     
01106     return *this;
01107 }

xlong & xlong::operator-= INT32  operand  ) 
 

Overloading the minus-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h
Parameters:
operand to be subtracted - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 826 of file xlong.cpp.

00827 {
00828     xlong temp;
00829           
00830     LongToXlong(operand, temp);
00831 
00832     XlongSubOne(temp, *this);
00833 
00834     return *this;
00835 }

xlong & xlong::operator-= const xlong operand  ) 
 

Overloading the minus-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
lvalue to be incremented [INPUTS] operand to be subtracted - rhs of assignment.
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 800 of file xlong.cpp.

00801 {
00802     XlongSubOne(operand, *this);
00803 
00804     return *this;
00805 }

xlong & xlong::operator/= INT32  operand  ) 
 

Overloading the divide-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h
Parameters:
divisor - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 964 of file xlong.cpp.

00965 {
00966     xlong temp;
00967           
00968     LongToXlong(operand, temp);
00969 
00970     XDiv64One(temp, *this);
00971 
00972     return *this;
00973 }

xlong & xlong::operator/= const xlong operand  ) 
 

Overloading the divide-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
divisor - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 938 of file xlong.cpp.

00939 {
00940     XDiv64One(operand, *this);
00941 
00942     return *this;
00943 }

xlong & xlong::operator<<= UINT32  shift  ) 
 

Overloading the left-shift-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
shift count - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 994 of file xlong.cpp.

00995 {
00996     XlongAsl64One(shift, *this);
00997 
00998     return *this;
00999 }

xlong & xlong::operator= INT32  operand  ) 
 

Overloading the assignment operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h
Parameters:
operand to be assigned - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 710 of file xlong.cpp.

00711 {
00712     xlong temp;
00713     
00714     LongToXlong(operand, temp);
00715     
00716     this->low = temp.low;
00717     this->high = temp.high;
00718 
00719     return *this;
00720 }

xlong & xlong::operator= const xlong operand  ) 
 

Overloading the assignment operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
Parameters:
operand to be assigned - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 683 of file xlong.cpp.

00684 {
00685     this->low = operand.low;
00686     this->high = operand.high;
00687 
00688     return *this;
00689 }

xlong & xlong::operator>>= UINT32  shift  ) 
 

Overloading the right-shift-equals operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h
Parameters:
shift count - rhs of assignment. [INPUTS]
None. [OUTPUTS]
Returns:
A reference to an XLONG with result of assignment.

Errors: None.

Definition at line 1020 of file xlong.cpp.

01021 {
01022     XlongAsr64One(shift, *this);
01023 
01024     return *this;
01025 } 

void xlong::SetHighLow INT32  dwHigh,
UINT32  dwLow
[inline]
 

Used when serializing XLONGs.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/4/94
Parameters:
The high and low part of the xlong [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
xlong::GetHighLow

Definition at line 449 of file xlong.h.

00450 {
00451     high = dwHigh;
00452     low = dwLow;
00453 }

void xlong::ToString String out  )  const
 

Converts value of XLONG into an ASCII string representing it.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/6/93
See also:
Xlongasm.h
Parameters:
None. [INPUTS]
None [OUTPUTS]
Returns:
Returns a string representing the value of a XLONG.

Errors: None.

Definition at line 128 of file xlong.cpp.

00129 {
00130     TCHAR s[21];
00131                  
00132     XlongToAscii(*this, s);             
00133     
00134     *out = s;
00135 }


Friends And Related Function Documentation

xlong CCAPI operator * const xlong operand1,
fixed16  operand2
[friend]
 

Overloading the multiplication operator for XLONGs and FIXED16s.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be multiplied togther. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of multiplication.

Errors: None.

Definition at line 464 of file xlong.cpp.

00465 {
00466     xlong temp = operand1;
00467 
00468     XlongByFixed16One( &temp, operand2 );           // more efficient to pass 1 ptr than 2
00469 
00470     return temp;
00471 }

xlong CCAPI operator * const xlong operand1,
INT32  operand2
[friend]
 

Overloading the multiplication operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be multiplied togther. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of multiplication.

Errors: None.

Definition at line 402 of file xlong.cpp.

00403 {
00404     xlong result = operand1;
00405     xlong temp;
00406     
00407     LongToXlong(operand2, temp);
00408 
00409     XMul64One(temp, result);
00410 
00411     return result;
00412 }

xlong CCAPI operator * const xlong operand1,
INT32  operand2
[friend]
 

Overloading the multiplication operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be multiplied togther. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of multiplication.

Errors: None.

Definition at line 402 of file xlong.cpp.

00403 {
00404     xlong result = operand1;
00405     xlong temp;
00406     
00407     LongToXlong(operand2, temp);
00408 
00409     XMul64One(temp, result);
00410 
00411     return result;
00412 }

xlong CCAPI operator * const xlong operand1,
const xlong operand2
[friend]
 

Overloading the multiplication operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be multiplied togther. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of multiplication.

Errors: None.

Definition at line 373 of file xlong.cpp.

00374 {
00375     xlong result = operand1;
00376 
00377     XMul64One(operand2, result);
00378 
00379     return result;
00380 }

INT32 CCAPI operator!= const xlong first,
INT32  second
[friend]
 

Overloading the postfix inequality operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two valuess to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1272 of file xlong.cpp.

01273 { 
01274     xlong temp;
01275     
01276     LongToXlong(second, temp);
01277     
01278     return XlongCmpNE(first, temp); 
01279 }

INT32 CCAPI operator!= const xlong first,
INT32  second
[friend]
 

Overloading the postfix inequality operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two valuess to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1272 of file xlong.cpp.

01273 { 
01274     xlong temp;
01275     
01276     LongToXlong(second, temp);
01277     
01278     return XlongCmpNE(first, temp); 
01279 }

INT32 CCAPI operator!= const xlong first,
const xlong second
[friend]
 

Overloading the postfix inequality operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two XLONGs to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1246 of file xlong.cpp.

01247 { 
01248     return XlongCmpNE(first, second); 
01249 }

xlong CCAPI operator+ const xlong operand1,
INT32  operand2
[friend]
 

Overloading the addition operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be added together. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of addition.

Errors: None.

Definition at line 191 of file xlong.cpp.

00192 {
00193     xlong result = operand1;
00194     xlong temp;
00195     
00196     LongToXlong(operand2, temp);
00197     
00198     XlongAddOne(temp, result);
00199 
00200     return result;
00201 }

xlong CCAPI operator+ const xlong operand1,
INT32  operand2
[friend]
 

Overloading the addition operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be added together. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of addition.

Errors: None.

Definition at line 191 of file xlong.cpp.

00192 {
00193     xlong result = operand1;
00194     xlong temp;
00195     
00196     LongToXlong(operand2, temp);
00197     
00198     XlongAddOne(temp, result);
00199 
00200     return result;
00201 }

xlong CCAPI operator+ const xlong operand1,
const xlong operand2
[friend]
 

Overloading the addition operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be added together. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of addition.

Errors: None.

Definition at line 161 of file xlong.cpp.

00162 {
00163     xlong result = operand1;
00164 
00165     XlongAddOne(operand2, result);
00166 
00167     return result;
00168 }

xlong CCAPI operator- const xlong input  )  [friend]
 

Overloading the negation operator for XLONGs.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Value for negation. [INPUTS]
None. [OUTPUTS]
Returns:
The negated value.

Errors: None.

Definition at line 345 of file xlong.cpp.

00346 {
00347     xlong temp;
00348 
00349     XlongNegOne( temp = input );
00350     return temp;
00351 }

xlong CCAPI operator- const xlong operand1,
INT32  operand2
[friend]
 

Overloading the subtract operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be subtracted from each other. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of subtraction.

Errors: None.

Definition at line 285 of file xlong.cpp.

00286 {
00287     xlong result = operand1;
00288     xlong temp;
00289     
00290     LongToXlong(operand2, temp);
00291 
00292     XlongSubOne(temp, result);
00293 
00294     return result;
00295 }

xlong CCAPI operator- const xlong operand1,
INT32  operand2
[friend]
 

Overloading the subtract operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be subtracted from each other. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of subtraction.

Errors: None.

Definition at line 285 of file xlong.cpp.

00286 {
00287     xlong result = operand1;
00288     xlong temp;
00289     
00290     LongToXlong(operand2, temp);
00291 
00292     XlongSubOne(temp, result);
00293 
00294     return result;
00295 }

xlong CCAPI operator- const xlong operand1,
const xlong operand2
[friend]
 

Overloading the subtract operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be subtracted from each other. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of subtraction.

Errors: None.

Definition at line 256 of file xlong.cpp.

00257 {
00258     xlong result = operand1;
00259 
00260     XlongSubOne(operand2, result);
00261 
00262     return result;
00263 }

xlong CCAPI operator/ const xlong operand1,
INT32  operand2
[friend]
 

Overloading the division operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be divided. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of division.

Errors: None.

Definition at line 524 of file xlong.cpp.

00525 {
00526     xlong result = operand1;
00527     xlong temp;
00528     
00529     LongToXlong(operand2, temp);
00530 
00531     XDiv64One(temp, result);
00532 
00533     return result;
00534 }

xlong CCAPI operator/ const xlong operand1,
INT32  operand2
[friend]
 

Overloading the division operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/5/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be divided. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of division.

Errors: None.

Definition at line 524 of file xlong.cpp.

00525 {
00526     xlong result = operand1;
00527     xlong temp;
00528     
00529     LongToXlong(operand2, temp);
00530 
00531     XDiv64One(temp, result);
00532 
00533     return result;
00534 }

xlong CCAPI operator/ const xlong operand1,
const xlong operand2
[friend]
 

Overloading the division operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be divided. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of division.

Errors: None.

Definition at line 495 of file xlong.cpp.

00496 {
00497     xlong result = operand1;
00498 
00499     XDiv64One(operand2, result);
00500 
00501     return result;
00502 }

INT32 CCAPI operator< const xlong first,
INT32  second
[friend]
 

Overloading the postfix less-than operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1358 of file xlong.cpp.

01359 { 
01360     xlong temp;
01361     
01362     LongToXlong(second, temp);
01363     
01364     return XlongCmpLT(first, temp); 
01365 }

INT32 CCAPI operator< const xlong first,
INT32  second
[friend]
 

Overloading the postfix less-than operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1358 of file xlong.cpp.

01359 { 
01360     xlong temp;
01361     
01362     LongToXlong(second, temp);
01363     
01364     return XlongCmpLT(first, temp); 
01365 }

INT32 CCAPI operator< const xlong first,
const xlong second
[friend]
 

Overloading the postfix less-than operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two XLONGs to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1332 of file xlong.cpp.

01333 { 
01334     return XlongCmpLT(first, second); 
01335 }

xlong CCAPI operator<< const xlong operand,
UINT32  shift
[friend]
 

Overloading the << operator to mean shift left for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
operand - shift count. [INPUTS]
None. [OUTPUTS]
Returns:
An XLONG with result of ASL.

Errors: None.

Definition at line 654 of file xlong.cpp.

00655 {
00656     xlong result = operand;
00657 
00658     XlongAsl64One(shift, result);
00659 
00660     return result;
00661 }

INT32 CCAPI operator<= const xlong first,
INT32  second
[friend]
 

Overloading the postfix less-than--or-equal operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1530 of file xlong.cpp.

01531 { 
01532     xlong temp;
01533     
01534     LongToXlong(second, temp);
01535     
01536     return XlongCmpLE(first, temp); 
01537 }

INT32 CCAPI operator<= const xlong first,
INT32  second
[friend]
 

Overloading the postfix less-than--or-equal operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1530 of file xlong.cpp.

01531 { 
01532     xlong temp;
01533     
01534     LongToXlong(second, temp);
01535     
01536     return XlongCmpLE(first, temp); 
01537 }

INT32 CCAPI operator<= const xlong first,
const xlong second
[friend]
 

Overloading the postfix less-than--or-equal operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two XLONGs to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1504 of file xlong.cpp.

01505 { 
01506     return XlongCmpLE(first, second); 
01507 }

INT32 CCAPI operator== const xlong first,
INT32  second
[friend]
 

Overloading the postfix equality operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1186 of file xlong.cpp.

01187 {                                 
01188     xlong temp;
01189     
01190     LongToXlong(second, temp);
01191     
01192     return XlongCmpEQ(first, temp); 
01193 }

INT32 CCAPI operator== const xlong first,
INT32  second
[friend]
 

Overloading the postfix equality operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1186 of file xlong.cpp.

01187 {                                 
01188     xlong temp;
01189     
01190     LongToXlong(second, temp);
01191     
01192     return XlongCmpEQ(first, temp); 
01193 }

INT32 CCAPI operator== const xlong first,
const xlong second
[friend]
 

Overloading the postfix equality operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two XLONGs to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1160 of file xlong.cpp.

01161 { 
01162     return XlongCmpEQ(first, second); 
01163 }

INT32 CCAPI operator> const xlong first,
INT32  second
[friend]
 

Overloading the postfix greater-than operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1444 of file xlong.cpp.

01445 { 
01446     xlong temp;
01447     
01448     LongToXlong(second, temp);
01449     
01450     return XlongCmpGT(first, temp); 
01451 }

INT32 CCAPI operator> const xlong first,
INT32  second
[friend]
 

Overloading the postfix greater-than operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1444 of file xlong.cpp.

01445 { 
01446     xlong temp;
01447     
01448     LongToXlong(second, temp);
01449     
01450     return XlongCmpGT(first, temp); 
01451 }

INT32 CCAPI operator> const xlong first,
const xlong second
[friend]
 

Overloading the postfix greater-than operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two XLONGs to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1418 of file xlong.cpp.

01419 { 
01420     return XlongCmpGT(first, second); 
01421 }

INT32 CCAPI operator>= const xlong first,
INT32  second
[friend]
 

Overloading the postfix greater-than--or-equal operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1616 of file xlong.cpp.

01617 { 
01618     xlong temp;
01619     
01620     LongToXlong(second, temp);
01621     
01622     return XlongCmpGE(first, temp); 
01623 }

INT32 CCAPI operator>= const xlong first,
INT32  second
[friend]
 

Overloading the postfix greater-than--or-equal operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two values to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1616 of file xlong.cpp.

01617 { 
01618     xlong temp;
01619     
01620     LongToXlong(second, temp);
01621     
01622     return XlongCmpGE(first, temp); 
01623 }

INT32 CCAPI operator>= const xlong first,
const xlong second
[friend]
 

Overloading the postfix greater-than--or-equal operator for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
Two XLONGs to be compared [INPUTS]
None. [OUTPUTS]
Returns:
Integer - 0 = False 1 = True

Errors: None.

Definition at line 1590 of file xlong.cpp.

01591 { 
01592     return XlongCmpGE(first, second); 
01593 }

xlong CCAPI operator>> const xlong operand,
UINT32  shift
[friend]
 

Overloading the >> operator to mean shift right for XLONGs.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
See also:
Xlongasm.h Friend: XLONG
Parameters:
operand1 - value to be shifted. [INPUTS] operand2 - shift count.
None. [OUTPUTS]
Returns:
An XLONG with result of ASR.

Errors: None.

Definition at line 625 of file xlong.cpp.

00626 {
00627     xlong result = operand;
00628 
00629     XlongAsr64One(shift, result);
00630 
00631     return result;
00632 }


Member Data Documentation

INT32 xlong::high [private]
 

Definition at line 139 of file xlong.h.

UINT32 xlong::low [private]
 

Definition at line 138 of file xlong.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:03:21 2007 for Camelot by  doxygen 1.4.4