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