Page 1 of 1

What is the official name for bitwise additions?

Posted: Wed Jul 21, 2010 1:16 pm
by eliteforce
I cant remember the exact term to use and I know Q3 does this in the code.

Its basically when you add up the bits to figure out the options, and you have say 16bits and have
1 bit for say low grav
2 for no team damage
4 for no fall damage
8 for no quads

so if you had a 3, it would be lowgrav and no team damage

but I just need the correct term to call this, bitwise addition? or using bitwise options?

Re: What is the official name for bitwise additions?

Posted: Wed Jul 21, 2010 3:51 pm
by ^misantropia^
Bitwise OR?

Re: What is the official name for bitwise additions?

Posted: Mon Jul 26, 2010 11:57 am
by Eraser
Bitmask is a term that's used for such a bitwise number (http://en.wikipedia.org/wiki/Bitmask).
You state that you have a 16 bit number, but it's actually a 4 bit number. One bit for each setting.

Re: What is the official name for bitwise additions?

Posted: Wed Aug 04, 2010 8:45 pm
by bitWISE
"bitwise operation" is also a good general term.