1A forked and extended version of IntMath from 003-omnibus-opcodes.
2TODO: fold back into 003-omnibus-opcodes.
3