For storing integers with bitwise operands inside their declaration, which should I use? Performance wise I think that an enumeration works slightly faster, however what's the standard?
Name:
Anonymous2009-03-28 13:14
>>1 storing integers with bitwise operands inside their declaration
am i envisioning this correctly?
// shift in declaration
#define ONE 1>>1
if so, then i'd use a const int or typedef enum since either of those will enforce ``types-safety''.