log2() More...


Functions | |
| CGUL_BEGIN_C CGUL_EXPORT int | cgul_log2__floor (cgul_exception_t *cex, unsigned long int n) |
| CGUL_EXPORT int | cgul_log2__ceil (cgul_exception_t *cex, unsigned long int n) |
log2(). Calculate the floor and ceiling of the base-2 logarithm of unsigned long types.
| CGUL_BEGIN_C CGUL_EXPORT int cgul_log2__floor | ( | cgul_exception_t * | cex, |
| unsigned long int | n | ||
| ) |
Return the floor of the base-2 logarithm of the number n. If n is zero, an exception is thrown.
| [in,out] | cex | c-style exception |
| [in] | n | number |
Referenced by cgul_log2_cxx::floor().
| CGUL_EXPORT int cgul_log2__ceil | ( | cgul_exception_t * | cex, |
| unsigned long int | n | ||
| ) |
Return the ceiling of the base-2 logarithm of the number n. If n is zero, an exception is thrown.
| [in,out] | cex | c-style exception |
| [in] | n | number |
Referenced by cgul_log2_cxx::ceil().