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

binary

Name: Anonymous 2012-02-10 14:08

Why is it that languages don't support binary declaration?
Ex:int haxmyanus =1001b

Instead I am stuck with converting to hex....

Name: Anonymous 2012-02-17 1:58

I've done this before:


#define BINARY_BYTE(b7,b6,b5,b4,b3,b2,b1,b0) \
 ( \
  ((b7)<<7) | \
  ((b6)<<6) | \
  ((b5)<<5) | \
  ((b4)<<4) | \
  ((b3)<<3) | \
  ((b2)<<2) | \
  ((b1)<<1) | \
  ((b0)<<0) \
 )


>>10
thanks man.

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