bitwise
Perform bitwise AND, OR, XOR, NOT, shifts, and rotations on 8/16/32/64-bit integers or hex strings. Use it to combine flags, masks, or manipulate binary values.
Instructions
Performs bitwise operations (AND, OR, XOR, NOT, SHL, SHR, SAR, ROL, ROR) with 8/16/32/64-bit width. For several operations or chained steps in one call, use batch_calc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First operand (number or hex string like '0x1234') | |
| b | No | Second operand or shift count (not needed for NOT) | |
| bitWidth | No | Bit width (8, 16, 32, 64; default: 32) | |
| operation | Yes | Bitwise operation |