Critical comment in jdk: // HD source, section 2-1

I just stumbled upon this comment.

public static int lowestOneBit(int i) { // HD, Section 2-1 return i & -i; } 

in 1.5 java source. What does this comment mean? Is this a link to a book? specification?

+6
java comments
source share
1 answer

HD probably refers to Henry C. Warren's Hacker Delight . Indeed, this formula appears on page 11, section 2-1.

+12
source share

All Articles