Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

bits manipulation (C)

Name: Anonymous 2007-03-11 16:10 ID:8VfOl357

I'm an autodidact and I have programmed in C for one year now, but never studied this topic. Apart from operating systems or embedded systems, when do we need to manipulate bits in 21st century ? If you could give some examples...

Name: Anonymous 2007-03-13 13:33 ID:Heaven

Too bad bit manipulation is slow as hell.

checkSign :: Int -> Int
checkSign -1 = -1
checkSign 1 = 1
checkSign 0 = 1
checkSign x = if x < 0 then x + 1 else x - 1

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List