math: move x87-family fmod functions to C with inline asm