diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-05-02 18:37:05 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-05-02 18:37:05 +0000 |
commit | e59e5c1cd4fa05a2d6d0ae1a09592a35d377a29a (patch) | |
tree | 0ce9027185dd51519d9e01aab586e6f62d4920dd /ACE/ace/OS_NS_math.h | |
parent | 1143637b0027fcf7dff88ee6ec6f44d424ee3753 (diff) | |
download | ATCD-e59e5c1cd4fa05a2d6d0ae1a09592a35d377a29a.tar.gz |
Wed May 2 18:36:25 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/OS_NS_math.h:
Fixed compile warning with WinCE
Diffstat (limited to 'ACE/ace/OS_NS_math.h')
-rw-r--r-- | ACE/ace/OS_NS_math.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_math.h b/ACE/ace/OS_NS_math.h index 257e4992f8e..32d6d274d3f 100644 --- a/ACE/ace/OS_NS_math.h +++ b/ACE/ace/OS_NS_math.h @@ -94,6 +94,15 @@ namespace ACE_OS return ACE_STD_NAMESPACE::floor (x); } +#if defined (ACE_HAS_WINCE) + /// Windows CE has an intrinsic floor for float + template <> + float floor (float x) + { + return ACE_STD_NAMESPACE::floorf (x); + } +#endif + /// This method computes the smallest integral value not less than x. template <typename T> T ceil (T x) @@ -101,6 +110,15 @@ namespace ACE_OS return ACE_STD_NAMESPACE::ceil (x); } +#if defined (ACE_HAS_WINCE) + /// Windows CE has an intrinsic ceil for float + template <> + float ceil (float x) + { + return ACE_STD_NAMESPACE::ceilf (x); + } +#endif + /// This method computes the base-2 logarithm of x. ACE_NAMESPACE_INLINE_FUNCTION double log2 (double x); |