From: Tudor Bosman Date: Tue, 10 Jul 2012 20:40:31 +0000 (-0700) Subject: (minor changes, part of unrelated diff) X-Git-Tag: v0.22.0~1243 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d50251a503679e989a7a41a1e8a8311621126a66;p=folly.git (minor changes, part of unrelated diff) Test Plan: No Reviewed By: lucian@fb.com FB internal diff: D515713 --- diff --git a/folly/Bits.h b/folly/Bits.h index 6413252f..f97ada8e 100644 --- a/folly/Bits.h +++ b/folly/Bits.h @@ -24,7 +24,7 @@ * findLastSet(x) * find last (most significant) bit set in a value of an integral type, * 1-based. 0 = no bits are set (x == 0) - * for x != 0, findFirstSet(x) == 1 + floor(log2(x)) + * for x != 0, findLastSet(x) == 1 + floor(log2(x)) * * nextPowTwo(x) * Finds the next power of two >= x.