Additional stubs for HighPrecision operators
This commit is contained in:
1 parent
584de89fa8
commit
866da9180e
2 files changed
+29
-2
No files matched your search
@@ -162,6 +162,17 @@ HighPrecision::HighPrecision (double value)
|
||||
}
|
||||
#undef HPCAIRO_MAX_64
|
||||
|
||||
std::ostream &operator << (std::ostream &os, const HighPrecision &hp)
|
||||
{
|
||||
// XXX stubbed out
|
||||
return os;
|
||||
}
|
||||
std::istream &operator >> (std::istream &is, HighPrecision &hp)
|
||||
{
|
||||
// XXX stubbed out
|
||||
return is;
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif /* HIGH_PRECISION_CAIRO_H */
|
||||
@@ -21,6 +21,7 @@
|
||||
#define HIGH_PRECISION_DOUBLE_H
|
||||
|
||||
#include <math.h>
|
||||
#include "ns3/fatal-error.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
@@ -56,6 +57,9 @@ private:
|
||||
double m_value;
|
||||
};
|
||||
|
||||
inline std::ostream &operator << (std::ostream &os, const HighPrecision &hp);
|
||||
inline std::istream &operator >> (std::istream &is, HighPrecision &hp);
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
namespace ns3 {
|
||||
@@ -131,8 +135,7 @@ HighPrecision::Zero (void)
|
||||
int64_t
|
||||
HighPrecision::GetHigh (void) const
|
||||
{
|
||||
NS_FATAL_ERROR ("XXX this function unavailable for high-precision-as-double; patch requested");
|
||||
return 0;
|
||||
return GetInteger ();
|
||||
}
|
||||
|
||||
uint64_t
|
||||
@@ -142,6 +145,19 @@ HighPrecision::GetLow (void) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::ostream &operator << (std::ostream &os, const HighPrecision &hp)
|
||||
{
|
||||
// XXX stubbed out
|
||||
return os;
|
||||
}
|
||||
|
||||
std::istream &operator >> (std::istream &is, HighPrecision &hp)
|
||||
{
|
||||
// XXX stubbed out
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif /* HIGH_PRECISION_DOUBLE_H */
|
||||
Reference in new issue
Block a user