cgul_log2_cxx Class Reference

C++ bindings for cgul_log2 More...

#include <cgul_log2_cxx.h>

Collaboration diagram for cgul_log2_cxx:
Collaboration graph

Static Public Member Functions

static int floor (unsigned long int n)
 
static int ceil (unsigned long int n)
 

Detailed Description

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.

Member Function Documentation

§ floor()

static int cgul_log2_cxx::floor ( unsigned long int  n)
inlinestatic

Return the floor of the base-2 logarithm of the number n. If n is zero, an exception is thrown.

Parameters
[in]nnumber
Returns
floor(log2(n))

References cgul_log2__floor().

§ ceil()

static int cgul_log2_cxx::ceil ( unsigned long int  n)
inlinestatic

Return the ceiling of the base-2 logarithm of the number n. If n is zero, an exception is thrown.

Parameters
[in]nnumber
Returns
ceil(log2(n))

References cgul_log2__ceil().


The documentation for this class was generated from the following file: