|
|
| 32 |
namespace ns3 { |
32 |
namespace ns3 { |
| 33 |
|
33 |
|
| 34 |
HighPrecision Abs (HighPrecision const &value); |
34 |
HighPrecision Abs (HighPrecision const &value); |
| 35 |
HighPrecision Max (HighPrecision const &a, HighPrecision const &b); |
35 |
inline HighPrecision Max (HighPrecision const &a, HighPrecision const &b); |
| 36 |
HighPrecision Min (HighPrecision const &a, HighPrecision const &b); |
36 |
inline HighPrecision Min (HighPrecision const &a, HighPrecision const &b); |
|
|
37 |
|
| 38 |
|
| 39 |
inline HighPrecision Max (HighPrecision const &a, HighPrecision const &b) |
| 40 |
{ |
| 41 |
if (a.Compare (b) >= 0) |
| 42 |
{ |
| 43 |
return a; |
| 44 |
} |
| 45 |
else |
| 46 |
{ |
| 47 |
return b; |
| 48 |
} |
| 49 |
} |
| 50 |
inline HighPrecision Min (HighPrecision const &a, HighPrecision const &b) |
| 51 |
{ |
| 52 |
if (a.Compare (b) <= 0) |
| 53 |
{ |
| 54 |
return a; |
| 55 |
} |
| 56 |
else |
| 57 |
{ |
| 58 |
return b; |
| 59 |
} |
| 60 |
} |
| 37 |
|
61 |
|
| 38 |
}; /* namespace ns3 */ |
62 |
}; /* namespace ns3 */ |
| 39 |
|
63 |
|