1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>SVC_DivRem</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">SVC_DivRem <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <nitro/os/common/systemCall.h></CODE></PRE> 16 <PRE><CODE>s32 SVC_DivRem( s32 numer, s32 demon );</CODE></PRE> 17</DL> 18<H2>Arguments</H2> 19<TABLE border="1"> 20 <TBODY> 21 <TR> 22 <TD><B><I>numer</I></B></TD> 23 <TD>Numerator of fraction. Represents dividend of division here.</TD> 24 </TR> 25 <TR> 26 <TD><B><I>denom</I></B></TD> 27 <TD>Denominator of fraction. Represents divisor of division here.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<H2>Return Values</H2> 32<P>Returns the remainder of the division operation.</P> 33<H2>Description</H2> 34<P>It performs the division operation with the given arguments and returns the result. It calculates <em><strong><code>numer</strong></em> % <em><strong>denom</code></strong></em>.</P> 35<P>At the assembler level, it is restored from this function as follows: <code><em><strong>r0</strong></em> = <em><strong>numer</strong></em> % <em><strong>denom</strong></em></code>,<br /> <code><em><strong>r1</strong></em> = <em><strong>numer</strong></em> % <em><strong>denom</strong></em></code>,<br /> <code><em><strong>r3</strong></em> = <em><strong>| numer</strong></em> / <em><strong> denom |</strong></em></code>. Because the code size is compressed, it is not high speed.</P> 36<H2>See Also</H2> 37<P><a href="../cp/div/CP_SetDiv.html"><code>CP_SetDiv*()</code></a>, <a href="../cp/div/CP_GetDivRemainder.html"><code>CP_GetDivRemainder*()</code></a>, <a href="SVC_Div.html"><code>SVC_Div</code></a></P> 38<H2>Revision History</H2> 39<P>2004/07/20 Initial version.</P> 40<hr><p>CONFIDENTIAL</p></body> 41</HTML>