Query: ilog2
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ILOG2(3) BSD Library Functions Manual ILOG2(3)NAMEilog2 -- integer logarithmSYNOPSIS#include <sys/bitops.h> size ilog2(size x);DESCRIPTIONThe ilog2() macro returns an integer (binary) logarithm of x. It is the logarithm for base 2; the binary logarithm of x is the power to which the number 2 must be raised to obtain the value x. The type of the input parameter should be either uint32_t or uint64_t.ERRORSA value -1 is returned on error.SEE ALSObitops(3), ilogb(3), log2(3), imax(9), powerof2(9)HISTORYThe ilog2() macro first appeared in NetBSD 5.0.BSDMay 10, 2011 BSD
Related Man Pages |
---|
logl(3) - freebsd |
log10(3) - netbsd |
log1p(3) - netbsd |
logf(3) - netbsd |
howmany(9) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Memory Leaks |
How to install PGX32 on Sparc 10 Ultra? |
RFC - Korn shell prompt |
Adding a List of Times |