LWN.net Logo

Bitwise Optimization in Java: Bitfields, Bitboards, and Beyond (O'ReillyNet)

Glen Pepicelli manipulates bits with Java in an O'Reilly article. "Flipping bits on and off is the lowest level of computing, and most Java developers are totally isolated from it. But maybe they shouldn't be. In this article, Glen Pepicelli introduces the idea of bitsets--ints and longs whose bitwise representation are the data you're interested in--and how they can be used with mathematical and logical operators to write faster code."
(Log in to post comments)

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds