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 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>fx16 Type Constant Macros</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">fx16 Type Constant Macros<img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></h1> 15<h2>Description</h2> 16<TABLE border="0" width="100%"> 17 <TBODY> 18 <TR> 19 <TD width="156">FX16_ONE</TD> 20 <TD width="381">This is the number 1. It is equal to FX16_CONST (1.0f).</TD> 21 </TR> 22 <TR> 23 <TD width="156">FX16_HALF</TD> 24 <TD width="381">This is the number 1/2. It is equal to FX16_CONST (0.5.0f).</TD> 25 </TR> 26 <TR> 27 <TD width="156">FX16_SQRT2</TD> 28 <TD width="381">The square root of 2.</TD> 29 </TR> 30 <TR> 31 <TD width="156">FX16_SQRT1_2</TD> 32 <TD width="381">The square root of 1/2.</TD> 33 </TR> 34 <TR> 35 <TD width="156">FX16_SQRT3</TD> 36 <TD width="381">The square root of 3.</TD> 37 </TR> 38 <TR> 39 <TD width="156">FX16_SQRT1_3</TD> 40 <TD width="381">The square root of 1/3.</TD> 41 </TR> 42 </TBODY> 43</TABLE> 44<H2>Macro Definitions</H2> 45<P>These are defined in <CODE>TwlSDK/include/nitro/fx/fx_const.h</CODE>. 46<PRE>#define FX16_ONE ((fx16) 0x1000) // 1.000 47#define FX16_HALF ((fx16) 0x0800) // 0.500 48#define FX16_SQRT2 ((fx16) 0x16a1) // 1.414 49#define FX16_SQRT1_2 ((fx16) 0x0b50) // 0.707 50#define FX16_SQRT3 ((fx16) 0x1bb6) // 1.732 51#define FX16_SQRT1_3 ((fx16) 0x093d) // 0.577</CODE></PRE> 52<H2>Revision History</H2> 53<P>2008/07/11 Moved the definitions from the NITRO-SDK to the TWL-SDK.</P> 54<P>2004/02/25 Initial version.</P> 55<hr><p>CONFIDENTIAL</p></body> 56</html> 57