C++ bindings for cgul_log2
More...
#include <cgul_log2_cxx.h>
Static Public Member Functions | |
static int | floor (unsigned long int n) |
static int | ceil (unsigned long int n) |
This class provides the C++ bindings for cgul_log2
. The main purpose of this class is to convert the C-style function calls and exception handling in cgul_log2
into C++-style function calls and exception handling.
|
inlinestatic |
Return the floor of the base-2 logarithm of the number n
. If n
is zero, an exception is thrown.
[in] | n | number |
References cgul_log2__floor().
|
inlinestatic |
Return the ceiling of the base-2 logarithm of the number n
. If n
is zero, an exception is thrown.
[in] | n | number |
References cgul_log2__ceil().