add ns3 namespace to HighPrecision class
This commit is contained in:
@@ -20,9 +20,14 @@
|
||||
*/
|
||||
#include "high-precision.h"
|
||||
|
||||
#ifdef HIGH_PRECISION_I128
|
||||
#include <cmath>
|
||||
#include <cassert>
|
||||
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
#ifdef HIGH_PRECISION_I128
|
||||
|
||||
HighPrecision::HighPrecision ()
|
||||
: m_high (0),
|
||||
m_low (0)
|
||||
@@ -87,9 +92,6 @@ HighPrecision::Zero (void)
|
||||
|
||||
#else /* HIGH_PRECISION_I128 */
|
||||
|
||||
#include <cmath>
|
||||
#include <cassert>
|
||||
|
||||
const double HighPrecision::MAX_64 = 18446744073709551615.0;
|
||||
|
||||
HighPrecision::HighPrecision ()
|
||||
@@ -156,3 +158,5 @@ HighPrecision::Zero (void)
|
||||
}
|
||||
|
||||
#endif /* HIGH_PRECISION_I128 */
|
||||
|
||||
}; /* namespace ns3 */
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
#ifdef HIGH_PRECISION_I128
|
||||
|
||||
/**
|
||||
@@ -86,6 +88,6 @@ private:
|
||||
|
||||
#endif /* HIGH_PRECISION_I128 */
|
||||
|
||||
|
||||
}; /* namespace ns3 */
|
||||
|
||||
#endif /* HIGH_PRECISION_H */
|
||||
|
||||
Reference in New Issue
Block a user