1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>FX_Mul</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">FX_Mul <img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<PRE><CODE>#include <nitro/fx/fx.h> 20 21fx32 FX_Mul(fx32 v1, fx32 v2);</CODE></PRE> 22 </dd> 23</dl><h2>Arguments</h2> 24 25<table border="1" width="100%"> 26 27 <tr> 28<TD width="109"><SPAN class="argument">v1</SPAN></TD> 29<TD width="593">An <code><A href="fx32.html">fx32</A></code>-type fixed decimal.</TD> 30 </tr> 31 <TR> 32<TD><SPAN class="argument">v2</SPAN></TD> 33<TD>An <code><A href="fx32.html">fx32</A></code>-type fixed decimal.</TD> 34 </TR> 35 </table> 36<h2>Return Values</h2> 37<p>Result of multiplying <SPAN class="argument">v1</SPAN> and <SPAN class="argument">v2</SPAN>.</p> 38<H2>Description</H2> 39<P>This function multiplies two <CODE><A href="fx32.html">fx32</A></CODE> types. It returns the result as an <CODE><A href="fx32.html">fx32</A></CODE> type. The calculations are performed internally using <CODE><A href="fx64.html">fx64</A></CODE> types. Values that are less than 1/4096 are rounded off. If this function is written in a section of THUMB code it is handled as a function call. If it is written in ARM code it is expanded as an inline function.<br>For this reason, if your program internally switches between ARM and THUMB code, do not use <code>#pragma thumb on</code>. Instead use <code>#include <twl/code16.h></code>.<br>See the <a href="../information/headerfiles.html">Description of Header Files</a> page for a description of <CODE>code16.h</CODE>. 40</P> 41<P><A href="../os/debug/SDK_WARNING.html"><CODE>SDK_WARNING</CODE></A> displays a warning message when the number of digits overflows during calculations.</P> 42 43<h2>See Also</h2> 44<P><code><A href="FX_Div.html">FX_Div</A><BR> <A href="FX_Sqrt.html">FX_Sqrt</A><BR> <A href="FX_Inv.html">FX_Inv</A></code></P> 45<H2>Revision History</H2> 46<P> 472009/04/28 Added description of method if switching between THUMB and ARM code.<br> 2006/04/28 Added digit overflow check.<br> 2004/01/19 Initial version.</P> 48<hr><p>CONFIDENTIAL</p></body> 49</html> 50