Integer bitwise compute

integer-bitwise-compute · version 1.0.0 · Numbers & math · free, no key needed

Compute fixed-width integer AND, OR, XOR, NOT, AND-NOT, shifts or rotates; returns decimal, hex and binary.

Use when you need to: bitwise AND OR shift integer · integer bitwise mask flags hexadecimal bit operations · bitwise integer and or xor left shift 16 bit mask.

Decide before calling

Read the versioned contract and the supported scope below. Reuse integer-bitwise-compute@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use integer-bitwise-compute@1.0.0 for bitwise AND OR shift integer. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "operation": "and",
  "width": 8,
  "signed": false,
  "a": "0xf3",
  "b": "0x5a"
}

Response:

{
  "result": {
    "standard_version": "ISO/IEC 9899:2018 6.5.7, 6.5.10-6.5.12; ISO/IEC 14882:2020 [basic.fundamental]",
    "width": 8,
    "signed": false,
    "decimal": "82",
    "hex": "0x52",
    "binary": "0b01010010"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "integer-bitwise-compute",
  "version": "1.0.0",
  "input": {
    "operation": "and",
    "width": 8,
    "signed": false,
    "a": "0xf3",
    "b": "0x5a"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/integer-bitwise-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"operation":"and","width":8,"signed":false,"a":"0xf3","b":"0x5a"}'

The machine-readable contract is at /v1/tools/integer-bitwise-compute/versions/1.0.0.

CLI

node cli.mjs run integer-bitwise-compute 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.