Intop-Log2 impl

Implements Intop-Log2.

Summary
Intop-Log2 implImplements Intop-Log2.
CopyrightThis program is free software.
C-kern/api/math/int/log2.hHeader file Intop-Log2.
C-kern/math/int/log2.cImplementation file Intop-Log2 impl.
test

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2011 Jörg Seebohn

C-kern/api/math/int/log2.h

Header file Intop-Log2.

C-kern/math/int/log2.c

Implementation file Intop-Log2 impl.

test

Calculates x = log2 of integer i such that pow(2,x) <= i.
Implements Intop-Log2.
Close