20 #include "ns3/core-config.h"    22 #if !defined(INT64X64_128_H) && defined (INT64X64_USE_128) && !defined(PYTHON_SCAN)    23 #define INT64X64_128_H    28 #if defined(HAVE___UINT128_T) && !defined(HAVE_UINT128_T)    50   static const uint64_t    
HP_MASK_LO = 0xffffffffffffffffULL;
    66 #define HP_MAX_64    (std::pow (2.0L, 64))   101     const bool negative = value < 0;
   102     const long double v = negative ? -value : value;
   105     long double flo = std::modf (v, &fhi);
   114     const long double round = 0.5;
   117     const uint64_t lo = flo;
   173   explicit inline int64x64_t (
const int64_t hi, 
const uint64_t lo)
   205     const bool negative = 
_v < 0;
   207     const long double fhi = value >> 64;
   209     long double retval = fhi;
   211     retval = negative ? -retval : retval;
   350   return lhs.
_v == rhs.
_v;
   358   return lhs.
_v < rhs.
_v;
   366   return lhs.
_v > rhs.
_v;
 int64x64_t & operator+=(int64x64_t &lhs, const int64x64_t &rhs)
Compound addition operator. 
int64x64_t operator+(const int64x64_t &lhs)
Unary plus operator. 
int64x64_t(const long int v)
int64x64_t(const int128_t v)
Construct from an integral type. 
int64x64_t(const long double value)
High precision numerical type, implementing Q64.64 fixed precision. 
int64x64_t & operator*=(int64x64_t &lhs, const int64x64_t &rhs)
Compound multiplication operator. 
static int64x64_t Invert(const uint64_t v)
Compute the inverse of an integer value. 
int64x64_t operator-(const int64x64_t &lhs)
Unary negation operator (change sign operator). 
static uint128_t Udiv(const uint128_t a, const uint128_t b)
Unsigned division of Q64.64 values. 
impl_type
Type tag for the underlying implementation. 
void MulByInvert(const int64x64_t &o)
Multiply this value by a Q0.128 value, presumably representing an inverse, completing a division oper...
friend int64x64_t operator!(const int64x64_t &lhs)
Logical not operator. 
friend int64x64_t & operator*=(int64x64_t &lhs, const int64x64_t &rhs)
Compound multiplication operator. 
friend bool operator==(const int64x64_t &lhs, const int64x64_t &rhs)
Equality operator. 
bool operator<(const EventId &a, const EventId &b)
friend int64x64_t & operator/=(int64x64_t &lhs, const int64x64_t &rhs)
Compound division operator. 
int64x64_t(const unsigned long int v)
static const uint64_t HP_MASK_LO
Mask for fraction part. 
int128_t _v
The Q64.64 value. 
int64x64_t(const int64_t hi, const uint64_t lo)
Construct from explicit high and low values. 
friend int64x64_t & operator-=(int64x64_t &lhs, const int64x64_t &rhs)
Compound subtraction operator. 
int64x64_t(const long long int v)
void Mul(const int64x64_t &o)
Implement *=. 
int64x64_t()
Default constructor. 
static uint128_t UmulByInvert(const uint128_t a, const uint128_t b)
Unsigned multiplication of Q64.64 and Q0.128 values. 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
int64x64_t(const unsigned long long int v)
static const uint128_t HP128_MASK_HI_BIT
uint128_t high bit (sign bit). 
int64x64_t & operator=(const int64x64_t &o)
Assignment. 
#define HP_MAX_64
Floating point value of HP_MASK_LO + 1. 
static uint128_t Umul(const uint128_t a, const uint128_t b)
Unsigned multiplication of Q64.64 values. 
void Div(const int64x64_t &o)
Implement /=. 
Native int128_t implementation. 
int64x64_t(const unsigned int v)
friend bool operator<(const int64x64_t &lhs, const int64x64_t &rhs)
Less than operator. 
uint64_t GetLow(void) const
Get the fractional portion of this value, unscaled. 
bool operator>(const int64x64_t &lhs, const int64x64_t &rhs)
Greater operator. 
bool operator==(const EventId &a, const EventId &b)
Cairo wideint implementation. 
double GetDouble(void) const
Get this value as a double. 
int64x64_t & operator-=(int64x64_t &lhs, const int64x64_t &rhs)
Compound subtraction operator. 
friend int64x64_t & operator+=(int64x64_t &lhs, const int64x64_t &rhs)
Compound addition operator. 
friend int64x64_t operator-(const int64x64_t &lhs)
Unary negation operator (change sign operator). 
int64x64_t & operator/=(int64x64_t &lhs, const int64x64_t &rhs)
Compound division operator. 
friend bool operator>(const int64x64_t &lhs, const int64x64_t &rhs)
Greater operator. 
static const uint64_t HP_MASK_HI
Mask for sign + integer part. 
int64x64_t(const int64x64_t &o)
Copy constructor. 
long double implementation. 
int64x64_t operator!(const int64x64_t &lhs)
Logical not operator. 
int64x64_t(const double value)
int64_t GetHigh(void) const
Get the integer portion. 
static enum impl_type implementation
Type tag for this implementation.