Remake fast math functions