omw  0.2.1-beta
Public Member Functions | List of all members
omw::SignedInt128 Class Reference
Inheritance diagram for omw::SignedInt128:
omw::Base_Int128

Public Member Functions

 SignedInt128 (const omw::SignedInt128 &other)
 
 SignedInt128 (int64_t value)
 
 SignedInt128 (uint64_t valueH, uint64_t valueL)
 
 SignedInt128 (uint32_t valueHH, uint32_t valueLH, uint32_t valueHL, uint32_t valueLL)
 
 SignedInt128 (const omw::Base_Int128 &other)
 
bool isNegative () const
 
int sign () const
 
Operators
omw::SignedInt128operator= (const omw::SignedInt128 &b)
 
omw::SignedInt128operator>>= (unsigned int count)
 
- Public Member Functions inherited from omw::Base_Int128
 Base_Int128 (const omw::Base_Int128 &other)
 
 Base_Int128 (int64_t value)
 
 Base_Int128 (uint64_t valueH, uint64_t valueL)
 
 Base_Int128 (uint32_t valueHH, uint32_t valueLH, uint32_t valueHL, uint32_t valueLL)
 
void set (uint64_t valueH, uint64_t valueL)
 
void set (uint32_t valueHH, uint32_t valueLH, uint32_t valueHL, uint32_t valueLL)
 
void sets (int64_t value)
 
void sets (int64_t valueH, uint64_t valueL)
 
void sets (int32_t valueHH, uint32_t valueLH, uint32_t valueHL, uint32_t valueLL)
 
void sets (const uint8_t *data, size_t count)
 
void setu (uint64_t value)
 
void setu (const uint8_t *data, size_t count)
 
uint64_t high () const
 
uint64_t hi () const
 
int64_t highs () const
 
int64_t his () const
 
uint64_t low () const
 
uint64_t lo () const
 
 operator bool () const
 
omw::Base_Int128operator+= (const omw::Base_Int128 &b)
 
omw::Base_Int128operator-= (const omw::Base_Int128 &b)
 
omw::Base_Int128operator&= (const omw::Base_Int128 &b)
 
omw::Base_Int128operator|= (const omw::Base_Int128 &b)
 
omw::Base_Int128operator^= (const omw::Base_Int128 &b)
 
omw::Base_Int128operator<<= (unsigned int count)
 
omw::Base_Int128operator++ ()
 
omw::Base_Int128operator-- ()
 
omw::Base_Int128 operator++ (int)
 
omw::Base_Int128 operator-- (int)
 

Additional Inherited Members

- Protected Member Functions inherited from omw::Base_Int128
void copy (const omw::Base_Int128 &other)
 
- Protected Attributes inherited from omw::Base_Int128
uint64_t m_h
 
uint64_t m_l
 

Constructor & Destructor Documentation

◆ SignedInt128()

omw::SignedInt128::SignedInt128 ( int64_t  value)

Uses omw::Base_Int128::sets(int64_t) to initialize.

Member Function Documentation

◆ operator>>=()

omw::SignedInt128 & omw::SignedInt128::operator>>= ( unsigned int  count)

◆ sign()

int omw::SignedInt128::sign ( ) const
Returns
-1 if the value is negative, 1 otherwise

Caution: This is not the mathematical sign (signum) function.


The documentation for this class was generated from the following files: