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_Div</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">SVC_Div <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 &lt;nitro/os/common/systemCall.h&gt;</CODE></PRE>
16  <PRE><CODE>s32 SVC_Div( 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 result of the division operation.</P>
33<H2>Description</H2>
34<P>This function performs the calculation <em><strong><code>numer</code></strong></em>&nbsp;/&nbsp;<em><strong><code>denom</code></strong></em> and returns the result At the assembler level, it is restored from this function as follows:</P>
35<P><em><strong><code>r0</strong></em>&nbsp;=&nbsp;<em><strong>numer</strong></em>&nbsp;/&nbsp;<em><strong>denom</code></strong></em> , <br /> <em><strong><code>r1</strong></em>&nbsp;=&nbsp;<em><strong>numer</strong></em>&nbsp;%&nbsp;<em><strong>denom</code></strong></em> , <br /> <em><strong><code>r3</strong></em>&nbsp;=&nbsp;|&nbsp;<em><strong>numer</strong></em>&nbsp;/&nbsp;<em><strong>denom</strong></em>&nbsp;|</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>, <code><a href="SVC_DivRem.html">SVC_DivRem</a></code></P>
38<H2>Revision History</H2>
39<P>2004/07/20 Initial version.</P>
40<hr><p>CONFIDENTIAL</p></body>
41</HTML>