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 ï¿½_ï¿½