Moved fixed point math to new file