views:

239

answers:

5

i got really confused every time when i encounterd bit operations,especially those shifts,rotates,overflow things etc.I wonder if there's any book/article on the web introducing boolean algebra,which could give me a solid background of boolean algebra,thanks!

+1  A: 

Wiki articles:

Boolean algebra (introduction)

Boolean algebra (logic)

Boolean logic

Mitch Wheat
A: 

At university we used a book called Introduction to Logic Design. Covered everything from boolean algebra up to FPGA stuff. Pretty comprehensive and it has a fair amount of exercises.

CookieOfFortune
thanks but i need a "crash course" ,that's too comprehensive and i'm not interested in electro..anyway,thanks lot
yfel
A: 

If you are using C like languages you can also read this: bitwise operations in C

Naveen
+1  A: 

I don't know of any books on this subject, but here are some online resources... It sounds to me like what you want is to understand binary better to start with. Here is a little treatment of Binary from MathWorld, which is the web's best mathematics reference. Here is an applet on binary shift. There is a wikipedia article on Bitwise Operation. Ben Fry has created a good calculator that includes Bit Roll (Rotation) in it - be sure to look at the help on the calculator as it does much more than is obvious at first - try changing the Mode to Bin, for example.

Christopher Morley
this is the one,thanks!
yfel
+2  A: 

Two really great books come to mind.

Also, online you can read Bit Twiddling Hacks.

Bill the Lizard
+1 for the bit twiddling hacks
Draemon