Ultima modifica da un moderatore:
Bitwise operation
un piccolo plugin qualche tempo fa di fare un'operazione bit per bit come
E un po 'di condizioni per verificare se un numero è potenza di 2 e se qualche campo di bit corrisponde a una maschera. . Cose del genere se avete qualsiasi domanda su questo WTFness favore, preparatevi e leggere che per prima https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators
#### 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
Fonte
un piccolo plugin qualche tempo fa di fare un'operazione bit per bit come
12 e 9 = 8 12 O 9 = 13 12 = 5 9 XOR NOT 9 = -10 12 << 2 = 48 12 >> 2 = 3 |
#### 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
Fonte