A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
int64x64-128.cc File Reference
#include "int64x64-128.h"
#include "abort.h"
#include "assert.h"
#include "log.h"
+ Include dependency graph for int64x64-128.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define MASK_HI   (~MASK_LO)
 
#define MASK_LO   ((((int128_t)1)<<64)-1)
 
#define OUTPUT_SIGN(sa, sb, ua, ub)
 

Functions

 NS_LOG_COMPONENT_DEFINE ("int64x64-128")
 

Macro Definition Documentation

#define MASK_HI   (~MASK_LO)

Definition at line 24 of file int64x64-128.cc.

#define MASK_LO   ((((int128_t)1)<<64)-1)

Definition at line 23 of file int64x64-128.cc.

#define OUTPUT_SIGN (   sa,
  sb,
  ua,
  ub 
)
Value:
({ bool negA, negB; \
negA = sa < 0; \
negB = sb < 0; \
ua = negA ? -sa : sa; \
ub = negB ? -sb : sb; \
(negA && !negB) || (!negA && negB); })

Definition at line 14 of file int64x64-128.cc.

Function Documentation

NS_LOG_COMPONENT_DEFINE ( "int64x64-128"  )