calc: add 64bit support

Signed-off-by: Vikram Pandita <vpandita@apple.com>