diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-05-03 06:43:31 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-05-03 06:43:31 +0000 |
commit | e38e55e313114d45b654bd6a3a74e9adc9e52722 (patch) | |
tree | 9c08192add6785d572f62fadc9967b50f25e4633 /ACE/ace/OS_NS_math.h | |
parent | e59e5c1cd4fa05a2d6d0ae1a09592a35d377a29a (diff) | |
download | ATCD-e38e55e313114d45b654bd6a3a74e9adc9e52722.tar.gz |
Thu May 3 06:42:15 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/OS_NS_math.h:
Make floor/ceil template methods inline
Diffstat (limited to 'ACE/ace/OS_NS_math.h')
-rw-r--r-- | ACE/ace/OS_NS_math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_math.h b/ACE/ace/OS_NS_math.h index 32d6d274d3f..e567507809c 100644 --- a/ACE/ace/OS_NS_math.h +++ b/ACE/ace/OS_NS_math.h @@ -89,6 +89,7 @@ namespace ACE_OS { /// This method computes the largest integral value not greater than x. template <typename T> + inline T floor (T x) { return ACE_STD_NAMESPACE::floor (x); @@ -97,6 +98,7 @@ namespace ACE_OS #if defined (ACE_HAS_WINCE) /// Windows CE has an intrinsic floor for float template <> + inline float floor (float x) { return ACE_STD_NAMESPACE::floorf (x); @@ -105,6 +107,7 @@ namespace ACE_OS /// This method computes the smallest integral value not less than x. template <typename T> + inline T ceil (T x) { return ACE_STD_NAMESPACE::ceil (x); @@ -113,6 +116,7 @@ namespace ACE_OS #if defined (ACE_HAS_WINCE) /// Windows CE has an intrinsic ceil for float template <> + inline float ceil (float x) { return ACE_STD_NAMESPACE::ceilf (x); |