ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Bitwise Optimization in Java: Bitfields, Bitboards, and Beyond
Subject:   Errata
Date:   2005-02-04 22:35:49
From:   gjmilne
A small mistake on the first page of this article

y = all 1 bits means that y=-1

y = all zeros except for the leftmost or sign bit mean that y = Integer.MIN_VALUE

This is all quite obvious from your 4-bit example table earlier.

1 to 1 of 1
1 to 1 of 1