New API conversion
Made translation table static
Used boundary constant instead of magic number
Math helper functions accept only unsigned types now