What is the official name for bitwise additions?

Locked
eliteforce
Posts: 1
Joined: Wed Jul 21, 2010 1:10 pm

What is the official name for bitwise additions?

Post 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?
[url=http://eliteforce.gamebub.com/quake3.php]quake 3 mod sources[/url] | [url=http://eliteforce.gamebub.com/]elite force[/url]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: What is the official name for bitwise additions?

Post by ^misantropia^ »

Bitwise OR?
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: What is the official name for bitwise additions?

Post 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.
bitWISE
Posts: 10704
Joined: Wed Dec 08, 1999 8:00 am

Re: What is the official name for bitwise additions?

Post by bitWISE »

"bitwise operation" is also a good general term.
Locked