summaryrefslogtreecommitdiff
path: root/ace/OS_NS_math.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-01-07 11:38:50 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-01-07 11:38:50 +0000
commit81c8e7ea95a2e49be3035ff6315acac6575daaaf (patch)
treef85f73fac59e211d2dc8f8e1e0166bf178bc46f6 /ace/OS_NS_math.inl
parentca20683138e2da3c7b1be709778eef8a2f0d9e66 (diff)
downloadATCD-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.inl36
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