VibeHunt
Back to browse
bitwise

bitwise

Base conversion and bit manipulation.

Source

A terminal‑based calculator that works with multiple numeric bases and provides direct bit manipulation. It can be invoked from the command line to evaluate expressions, automatically detecting input bases from prefixes (0x for hex, leading 0 for octal, b for binary, otherwise decimal) and printing results in binary, octal, decimal and hexadecimal. It also parses IPv4 addresses and shows them in normal and reversed byte order.

When run without arguments or with the interactive flag, it launches an ncurses UI where a number can be edited and its representation in all bases updates in real time. Users can toggle individual bits, change the displayed bit width (8, 16, 32, 64 bits), reverse endianness, and apply standard C‑style bitwise operators (NOT, AND, OR, XOR, shifts). An expression mode entered with “:” accepts full C syntax and the special BIT(x) function for referencing specific bits.

The tool targets low‑level developers such as kernel and device‑driver programmers who need quick base conversions and bit‑level editing. It is packaged for several Linux distributions and available as a snap, and it offers a Vim integration for in‑editor use.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps