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

BINARY

Name: Anonymous 2007-08-24 13:36 ID:qBy4HDJp

unsigned invert(unsigned x, int p, int n){
        return (x & ~((~(~0 << n))<<(p-1))) ^ ((~(~0 << n))<<(p-1));
   
    }

post more binary things..............show me neat things to do (*≧▽≦)

Name: Anonymous 2007-08-24 14:34 ID:PvOVjqyM

>>6
int pow2p
 (int n)
  { return !(n & (n-1)); }

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