8078136: Incorrect figure number in reference to Hacker's Delight book in Long.bitCount() method
authordarcy
Sun, 17 May 2015 11:04:01 -0700
changeset 30645 ca213ba02185
parent 30644 cc05b944b2fa
child 30646 f120592232b4
8078136: Incorrect figure number in reference to Hacker's Delight book in Long.bitCount() method Reviewed-by: lancea
jdk/src/java.base/share/classes/java/lang/Long.java
--- a/jdk/src/java.base/share/classes/java/lang/Long.java	Sun May 17 18:49:21 2015 +0200
+++ b/jdk/src/java.base/share/classes/java/lang/Long.java	Sun May 17 11:04:01 2015 -0700
@@ -1708,7 +1708,7 @@
      * @since 1.5
      */
      public static int bitCount(long i) {
-        // HD, Figure 5-14
+        // HD, Figure 5-2
         i = i - ((i >>> 1) & 0x5555555555555555L);
         i = (i & 0x3333333333333333L) + ((i >>> 2) & 0x3333333333333333L);
         i = (i + (i >>> 4)) & 0x0f0f0f0f0f0f0f0fL;