I made a little plugin a while ago to do bitwise operation like

- Code: Select all
`12 AND 9 = 8`

12 OR 9 = 13

12 XOR 9 = 5

NOT 9 = -10

12 << 2 = 48

12 >> 2 = 3

And some condition to check if a number is power of 2 and if some bitfield match a mask. Stuff like that.

if you have any question about this WTFness please, brace yourself and read that first

https://developer.mozilla.org/en/JavaSc ... _Operators

The plugin is here:

Bit.zip

#### Conditions ####

Check

- Check Mask

- Is bit set to 1

- Is power of 2

#### Actions ####

NONE

#### Expressions ####

Manipulation

- set0

- set1

- toggle

One Operand

- Not

Shifting

- lShift

- rShift

Two Operand (ok I forgot the '-s')

- AND

- OR

- XOR

And that's all

feedbacks are taken into accound from 18h30 to 18h35 GMT+1 (gneheheh)

It was a joke �_�