add ns3 namespace to HighPrecision class

This commit is contained in:
Mathieu Lacage
2006-11-03 09:07:43 +01:00
parent e24d630008
commit 4c969e8fbe
2 changed files with 11 additions and 5 deletions

View File

@@ -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 */

View File

@@ -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 */