fast math and compactification