Faster Math.floor and Math.ceil operations