X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Filog%2F_info;h=d57c05d4d25062032c390a31d5e75d1d92ced38f;hb=0a2fd289c7bf57d9fc35ad6af36df4bcc694f361;hp=9a92f4e70e98f6ec87161dd18b6ccfd16df49bad;hpb=8fc7a90a8db345c4276419d11f8731afc63f65f5;p=ccan diff --git a/ccan/ilog/_info b/ccan/ilog/_info index 9a92f4e7..d57c05d4 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 @@ -29,7 +32,7 @@ * return 0; * } * - * License: LGPL (v2.1 or any later version) + * License: CC0 (Public domain) * Author: Timothy B. Terriberry */ #include