blob: 9ff3151ab4fde61b18fc64c633c7c058d4e07b75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// -*- C++ -*-
// $Id$
ACE_INLINE double
ACE_OS::floor (double x)
{
// This method computes the largest integral value not greater than x.
return double (ACE_static_cast (long, x));
}
ACE_INLINE double
ACE_OS::ceil (double x)
{
// This method computes the smallest integral value not less than x.
double floor = ACE_OS::floor (x);
if (floor == x)
return floor;
else
return floor + 1;
}
|