bitwise_calc
Performs bitwise AND, OR, XOR, NOT, NAND, NOR, and shift operations on integers, returning binary calculation results for programming and logic tasks.
Instructions
Perform bitwise operations (AND, OR, XOR, NOT, NAND, NOR, shifts) on integers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First integer. | |
| b | No | Second integer (not needed for NOT). | |
| operation | No | Operation: and, or, xor, not, nand, nor, shift_left, shift_right (default and). |