3 // $Id: OS_NS_math.inl 80826 2008-03-04 14:51:23Z wotte $
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
12 // This method computes the largest integral value not greater than x.
14 return static_cast<long> (x);
15 else if (static_cast<long> (x) == x)
18 return static_cast<long>(x) - 1;
24 // This method computes the smallest integral value not less than x.
26 return static_cast<long> (x);
27 else if (static_cast<long> (x) == x)
30 return static_cast<long> (x) + 1;
36 return ace_log2_helper (x);
41 ACE_END_VERSIONED_NAMESPACE_DECL