diff -r 0ba73cdd2a43 src/simulator/high-precision.cc --- a/src/simulator/high-precision.cc Wed Sep 30 20:26:33 2009 -0700 +++ b/src/simulator/high-precision.cc Thu Oct 01 15:48:12 2009 +0400 @@ -38,27 +38,5 @@ return value; } } -HighPrecision Max (HighPrecision const &a, HighPrecision const &b) -{ - if (a.Compare (b) >= 0) - { - return a; - } - else - { - return b; - } -} -HighPrecision Min (HighPrecision const &a, HighPrecision const &b) -{ - if (a.Compare (b) <= 0) - { - return a; - } - else - { - return b; - } -} }; /* namespace ns3 */ diff -r 0ba73cdd2a43 src/simulator/high-precision.h --- a/src/simulator/high-precision.h Wed Sep 30 20:26:33 2009 -0700 +++ b/src/simulator/high-precision.h Thu Oct 01 15:48:12 2009 +0400 @@ -32,8 +32,32 @@ namespace ns3 { HighPrecision Abs (HighPrecision const &value); -HighPrecision Max (HighPrecision const &a, HighPrecision const &b); -HighPrecision Min (HighPrecision const &a, HighPrecision const &b); +inline HighPrecision Max (HighPrecision const &a, HighPrecision const &b); +inline HighPrecision Min (HighPrecision const &a, HighPrecision const &b); + + +inline HighPrecision Max (HighPrecision const &a, HighPrecision const &b) +{ + if (a.Compare (b) >= 0) + { + return a; + } + else + { + return b; + } +} +inline HighPrecision Min (HighPrecision const &a, HighPrecision const &b) +{ + if (a.Compare (b) <= 0) + { + return a; + } + else + { + return b; + } +} }; /* namespace ns3 */