/* div_s64_rem - signed 64bit divide with 32bit divisor with remainder  */
LIBC_ROM_TEXT_SECTION static _LONG_CALL_ s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)
/* div_s64_rem - signed 64bit divide with 32bit divisor with remainder  */
LIBC_ROM_TEXT_SECTION static _LONG_CALL_ s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)
{
        *remainder = (s32)dividend % divisor;
        return (s32)dividend / divisor;
}