X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Filog%2F_info;h=f1f3f2d5b8a180030432ae88f2d4fd161f383361;hb=fe21b246647e4694da5f76e0fd00e9a9f9e8c72e;hp=9038b59dbc69c78db3080a1e42643a0573677862;hpb=fa1277d4cf5b9946ebc9f9804958ec7c96a990cd;p=ccan diff --git a/ccan/ilog/_info b/ccan/ilog/_info index 9038b59d..f1f3f2d5 100644 --- a/ccan/ilog/_info +++ b/ccan/ilog/_info @@ -2,15 +2,18 @@ * ilog - Integer logarithm. * * ilog_32() and ilog_64() compute the minimum number of bits required to store - * an unsigned 32-bit or 64-bit value without any leading zero bits. + * an unsigned 32-bit or 64-bit value without any leading zero bits. + * * This can also be thought of as the location of the highest set bit, with - * counting starting from one (so that 0 returns 0, 1 returns 1, and 2**31 - * returns 32). + * counting starting from one (so that 0 returns 0, 1 returns 1, and 2**31 + * returns 32). + * * When the value is known to be non-zero ilog32_nz() and ilog64_nz() can - * compile into as few as two instructions, one of which may get optimized out - * later. + * compile into as few as two instructions, one of which may get optimized out + * later. + * * STATIC_ILOG_32 and STATIC_ILOG_64 allow computation on compile-time - * constants, so other compile-time constants can be derived from them. + * constants, so other compile-time constants can be derived from them. * * Example: * #include @@ -32,9 +35,9 @@ * License: CC0 (Public domain) * Author: Timothy B. Terriberry */ +#include "config.h" #include #include -#include "config.h" int main(int _argc,const char *_argv[]){ /*Expect exactly one argument.*/