# SVC_DivRem

## C Specification

      #include <nitro/os/common/systemCall.h>

      s32 SVC_DivRem( s32 numer, s32 demon );

## Arguments

numer | Numerator of fraction. Represents dividend of division here.
denom | Denominator of fraction. Represents divisor of division here.

## Return Values

Returns the remainder of the division operation.

## Description

It performs the division operation with the given arguments and returns the result. It calculates `numer` % denom.

At the assembler level, it is restored from this function as follows: `r0 = numer % denom`,
`r1 = numer % denom`,
`r3 = | numer / denom |`. Because the code size is compressed, it is not high speed.

## See Also

`CP_SetDiv*()`, `CP_GetDivRemainder*()`, `SVC_Div`

## Revision History

07/20/2004 Initial Version