From d50251a503679e989a7a41a1e8a8311621126a66 Mon Sep 17 00:00:00 2001 From: Tudor Bosman Date: Tue, 10 Jul 2012 13:40:31 -0700 Subject: [PATCH] (minor changes, part of unrelated diff) Test Plan: No Reviewed By: lucian@fb.com FB internal diff: D515713 --- folly/Bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1