{"id":"integer-bitwise-compute","version":"1.0.0","description":"Compute fixed-width integer AND, OR, XOR, NOT, AND-NOT, shifts or rotates; returns decimal, hex and binary.","supported_operations":["bitwise AND OR shift integer","integer bitwise mask flags hexadecimal bit operations","bitwise integer and or xor left shift 16 bit mask","unsigned integer bitwise and shift bit flags","rotate fixed width integer bits","arithmetic right shift signed integer","AND-NOT clear integer mask"],"unsupported_operations":["floating-point bit operations","variable or unbounded bit widths","byte-string XOR"],"semantics":["Integer values are safe JSON integers or strings matching -?(0|[1-9][0-9]*|0[xX][0-9a-fA-F]+|0[bB][01]+|0[oO][0-7]+); no whitespace, plus sign, separators, or leading decimal zeroes.","All operations use the explicit width and two's-complement bit pattern; results are fixed-width lowercase hex and binary plus signed or unsigned decimal.","Shift/rotate count is 0 through width-1. Logical right shift inserts zeroes; arithmetic right shift replicates the sign bit."],"limits":{"max_input_bytes":256,"max_output_bytes":1024,"max_width_bits":128,"max_iterations":128},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["operation","width","signed","a"],"properties":{"operation":{"type":"string","enum":["and","or","xor","not","and_not","shift_left","shift_right_logical","shift_right_arithmetic","rotate_left","rotate_right"]},"width":{"type":"integer","enum":[8,16,32,64,128]},"signed":{"type":"boolean"},"a":{"anyOf":[{"type":"string","minLength":1,"maxLength":132},{"type":"integer"}]},"b":{"anyOf":[{"type":"string","minLength":1,"maxLength":132},{"type":"integer"}]},"count":{"type":"integer","minimum":0,"maximum":127}}},"output_schema":{"type":"object","additionalProperties":false,"required":["standard_version","width","signed","decimal","hex","binary"],"properties":{"standard_version":{"type":"string"},"width":{"type":"integer"},"signed":{"type":"boolean"},"decimal":{"type":"string"},"hex":{"type":"string"},"binary":{"type":"string"}}},"examples":[{"input":{"operation":"and","width":8,"signed":false,"a":"0xf3","b":"0x5a"},"output":{"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"}},{"input":{"operation":"rotate_left","width":8,"signed":false,"a":"0x81","count":1},"output":{"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":"3","hex":"0x03","binary":"0b00000011"}}],"execute_url":"/v1/tools/integer-bitwise-compute/versions/1.0.0/execute"}