Provide stubbed HighPrecision GetHigh(), GetLow() implementations to fix builds across platforms
authorTom Henderson <tomh@tomh.org>
Wed, 18 Aug 2010 13:58:38 -0700
changeset 6581b3597c013780
parent 6580 ecb0f9a3849a
child 6582 44bad54b1f97
Provide stubbed HighPrecision GetHigh(), GetLow() implementations to fix builds across platforms
src/simulator/high-precision-cairo.cc
src/simulator/high-precision-cairo.h
src/simulator/high-precision-double.h
     1.1 --- a/src/simulator/high-precision-cairo.cc	Tue Aug 17 21:28:08 2010 -0700
     1.2 +++ b/src/simulator/high-precision-cairo.cc	Wed Aug 18 13:58:38 2010 -0700
     1.3 @@ -155,6 +155,20 @@
     1.4    return result;
     1.5  }
     1.6  
     1.7 +int64_t
     1.8 +HighPrecision::GetHigh (void) const
     1.9 +{
    1.10 +  NS_FATAL_ERROR ("XXX this function unavailable for high-precision-as-cairo; patch requested");
    1.11 +  return 0;
    1.12 +}
    1.13 +
    1.14 +uint64_t
    1.15 +HighPrecision::GetLow (void) const
    1.16 +{
    1.17 +  NS_FATAL_ERROR ("XXX this function unavailable for high-precision-as-cairo; patch requested");
    1.18 +  return 0;
    1.19 +}
    1.20 +
    1.21  std::ostream &operator << (std::ostream &os, const HighPrecision &hp)
    1.22  {
    1.23    return os;
     2.1 --- a/src/simulator/high-precision-cairo.h	Tue Aug 17 21:28:08 2010 -0700
     2.2 +++ b/src/simulator/high-precision-cairo.h	Wed Aug 18 13:58:38 2010 -0700
     2.3 @@ -60,6 +60,8 @@
     2.4  
     2.5    inline int Compare (HighPrecision const &o) const;
     2.6    inline static HighPrecision Zero (void);
     2.7 +  int64_t GetHigh (void) const;
     2.8 +  uint64_t GetLow (void) const;
     2.9  private:
    2.10    static cairo_uint128_t  Umul (cairo_uint128_t a, cairo_uint128_t b);
    2.11    static cairo_uint128_t Udiv (cairo_uint128_t a, cairo_uint128_t b);
     3.1 --- a/src/simulator/high-precision-double.h	Tue Aug 17 21:28:08 2010 -0700
     3.2 +++ b/src/simulator/high-precision-double.h	Wed Aug 18 13:58:38 2010 -0700
     3.3 @@ -49,6 +49,9 @@
     3.4  
     3.5    inline int Compare (HighPrecision const &o) const;
     3.6    inline static HighPrecision Zero (void);
     3.7 +  inline int64_t GetHigh (void) const;
     3.8 +  inline uint64_t GetLow (void) const;
     3.9 +
    3.10  private:
    3.11    double m_value;
    3.12  };
    3.13 @@ -125,6 +128,20 @@
    3.14    return HighPrecision (0,0);
    3.15  }
    3.16  
    3.17 +int64_t 
    3.18 +HighPrecision::GetHigh (void) const
    3.19 +{
    3.20 +  NS_FATAL_ERROR ("XXX this function unavailable for high-precision-as-double; patch requested");
    3.21 +  return 0;
    3.22 +}
    3.23 +
    3.24 +uint64_t 
    3.25 +HighPrecision::GetLow (void) const
    3.26 +{
    3.27 +  NS_FATAL_ERROR ("XXX this function unavailable for high-precision-as-double; patch requested");
    3.28 +  return 0;
    3.29 +}
    3.30 +
    3.31  } // namespace ns3
    3.32  
    3.33  #endif /* HIGH_PRECISION_DOUBLE_H  */