https://github.com/0xricksanchez/pcalc
pcalc clone written in rust for the sole purpose of it being able to handle 64-bit numbers
https://github.com/0xricksanchez/pcalc
bitwise-arithmetic calculator cli exploit-development rust
Last synced: 10 months ago
JSON representation
pcalc clone written in rust for the sole purpose of it being able to handle 64-bit numbers
- Host: GitHub
- URL: https://github.com/0xricksanchez/pcalc
- Owner: 0xricksanchez
- Created: 2022-02-23T10:36:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T13:38:47.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T04:12:10.398Z (12 months ago)
- Topics: bitwise-arithmetic, calculator, cli, exploit-development, rust
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pcalc
pcalc clone written in rust for the sole purpose of it being able to handle 64-bit numbers.
It's happily doing arithmetics with overflows just wrapping around the `usize` space.
## Usage

## Implemented Operators
- Addition ⇾ "+"
- Subtraction ⇾ "-"
- Multiplication ⇾ "*"
- Division ⇾ "/"
- Modulo ⇾ "%"
- Right shift ⇾ ">>"
- Left shift ⇾ "<<"
- Bitwise or ⇾ "||"
- Bitwise and ⇾ "&&"
## Known issues
- Built-in bash operators like "*" or ">>" requires putting quotes around the expressions
- Only two operands are supported, this is not intended to handle arbitrary large expressions