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 6.5.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>VECSquareMag</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">VECSquareMag</H1> 12<H2 align="left">C Specification</H2> 13<BLOCKQUOTE><CODE><CODE>#include <revolution/mtx.h></CODE></CODE></BLOCKQUOTE> 14<BLOCKQUOTE><CODE>f32 C_VECSquareMag ( const Vec* <em>v</em> );<br> f32 PSVECSquareMag ( const Vec* <em>v</em> );<br> <br> #define VECSquareMag C_VECSquareMag // for debug build<br> #define VECSquareMag PSVECSquareMag // for nondebug build</CODE></BLOCKQUOTE> 15<H2 align="left">Arguments</H2> 16<DIV align="left"> 17<TABLE border="1" cellpadding="3" cellspacing="0.1"> 18 <TBODY> 19 <TR> 20<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG>v</STRONG></EM></CODE></TD> 21<TD width="520" valign="top" align="left">Pointer to <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> for magnitude computation.</TD> 22 </TR> 23 </TBODY> 24</TABLE> 25</DIV> 26<H2 align="left">Return Values</H2> 27<P align="left">Returns the square of the magnitude of vector <code><em><strong>v</strong></em></code>.</P> 28<H2 align="left">Description</H2> 29<P align="left">This function computes the square of the magnitude of a vector.</P> 30<P><code>VECSquareMag</code> is interpreted as <code>C_VECSquareMag</code> for a debug build that uses a standard C language version. During a nondebug build for a Broadway processor, the paired-singles equivalent of this function, <code>PSVECSquareMag</code>, is automatically substituted. You can also call <code>C_VECSquareMag</CODE> or <CODE>PSVECSquareMag</code> explicitly.</P> 31 32 33<H2 align="left">See Also</H2> 34<P align="left"><A href="../structures/Vec_VecPtr.html"><CODE>Vec, VecPtr, </CODE></A></P> 35<P align="left"><A href="VECMag.html"><CODE>VECMag</CODE></A></P> 36<H2>Revision History</H2> 37<P>2006/03/01 Initial version.</P> 38<hr> 39<P>CONFIDENTIAL</p> 40</BODY> 41</HTML> 42