Simple calculator for address and size calculations
C++ C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
LICENSE-muparser
Makefile
README
main.cpp
muParser.cpp
muParser.h
muParserBase.cpp
muParserBase.h
muParserBytecode.cpp
muParserBytecode.h
muParserCallback.cpp
muParserCallback.h
muParserDLL.cpp
muParserDef.h
muParserError.cpp
muParserError.h
muParserFixes.h
muParserInt.cpp
muParserInt.h
muParserStack.h
muParserTemplateMagic.h
muParserToken.h
muParserTokenReader.cpp
muParserTokenReader.h

README

A small utility that helps calculating memory spaces.
It uses readline to get user input, and muparser to parse the expresssion.
The following postfixes are supported:
k = 1000
M = 1000*1000
G = 1000*1000*1000

kb = 1024
mb = 1024*1024
gb = 1024*1024*1024

It supports:
+, -, *, /, %, >>, <<, &, |, &&, ||, <. >, <=, >=, ==, ^

To reuse result, you can use the variable ans.

Example:
escalc
> (12+24kb+0x400)&0x00FFFFFFFF
Result: 
dec:   25612
hex: 0x640c
bit:   0000 0000 0000 0000 0110 0100 0000 1100 
Bytes: 12b, 25kb, 0mb, 0gb


For new features, please mail qball _at_ gmpclient.org.