math: rewrite remainder functions (remainder, remquo, fmod, modf)