Pregunta

me topé con este comentario.

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

en la fuente java 1.5. ¿Qué significa este comentario? ¿Es una referencia a un libro? una especificación?

¿Fue útil?

Solución

HD probablemente se refiere a Hacker's Delight de Henry S. Warren. De hecho, esta fórmula aparece en la página 11, sección 2-1.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top