diff options
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); |