diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-01-07 11:38:50 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-01-07 11:38:50 +0000 |
commit | 81c8e7ea95a2e49be3035ff6315acac6575daaaf (patch) | |
tree | f85f73fac59e211d2dc8f8e1e0166bf178bc46f6 /ace/OS_NS_math.inl | |
parent | ca20683138e2da3c7b1be709778eef8a2f0d9e66 (diff) | |
download | ATCD-81c8e7ea95a2e49be3035ff6315acac6575daaaf.tar.gz |
ChangeLogTag: Fri Jan 7 11:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/OS_NS_math.inl')
-rw-r--r-- | ace/OS_NS_math.inl | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/ace/OS_NS_math.inl b/ace/OS_NS_math.inl index 51db6c44966..6a55a57480a 100644 --- a/ace/OS_NS_math.inl +++ b/ace/OS_NS_math.inl @@ -1,20 +1,24 @@ // -*- C++ -*- // $Id$ -ACE_INLINE double -ACE_OS::floor (double x) -{ - // This method computes the largest integral value not greater than x. - return double (static_cast<long> (x)); -} +namespace ACE_OS { -ACE_INLINE double -ACE_OS::ceil (double x) -{ - // This method computes the smallest integral value not less than x. - const double floor = ACE_OS::floor (x); - if (floor == x) - return floor; - else - return floor + 1; -} + ACE_INLINE double + floor (double x) + { + // This method computes the largest integral value not greater than x. + return double (static_cast<long> (x)); + } + + ACE_INLINE double + ceil (double x) + { + // This method computes the smallest integral value not less than x. + const double floor = ACE_OS::floor (x); + if (floor == x) + return floor; + else + return floor + 1; + } + +} // ACE_OS namespace |