changeset 30645:ca213ba02185

8078136: Incorrect figure number in reference to Hacker's Delight book in Long.bitCount() method Reviewed-by: lancea
author darcy
date Sun, 17 May 2015 11:04:01 -0700
parents cc05b944b2fa
children f120592232b4
files jdk/src/java.base/share/classes/java/lang/Long.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;