\hypertarget{a00863}{}\doxysection{AAX\+\_\+\+Fast\+Pow.\+h File Reference}
\label{a00863}\index{AAX\_FastPow.h@{AAX\_FastPow.h}}
{\ttfamily \#include $<$cmath$>$}\newline
{\ttfamily \#include \char`\"{}AAX.\+h\char`\"{}}\newline


\doxysubsection{Description}
Set of functions to optimize pow. 

To use\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ kPowTableExtent\ =\ 9;\ \ \ \ \ \ \textcolor{comment}{//\ Lower\ values\ are\ less\ precise.\ 9\ is\ the\ maximum}}
\DoxyCodeLine{\textcolor{keywordtype}{float}\ powTableH[\mbox{\hyperlink{a00935_a59f1ab59ea51ed94f87e8d935870df9e}{kPowTableSize}}];}
\DoxyCodeLine{\textcolor{keywordtype}{float}\ powTableL[\mbox{\hyperlink{a00935_a59f1ab59ea51ed94f87e8d935870df9e}{kPowTableSize}}];}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ radix\ =\ 2;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ This\ should\ be\ whatever\ radix\ you\ want.\ Ie:\ radix\ \string^\ exp}}
\DoxyCodeLine{PowFastSetTable(\ powTableH,\ kPowExtent,\ kPowExtent,\ \textcolor{keyword}{false}\ );\ \textcolor{comment}{//\ Set\ the\ high\ table}}
\DoxyCodeLine{PowFastSetTable(\ powTableL,\ kPowExtent*2,\ kPowExtent,\ \textcolor{keyword}{true}\ );\textcolor{comment}{//\ Set\ the\ low\ table}}
\DoxyCodeLine{..}
\DoxyCodeLine{result\ =\ powFastLookup(exp,\ log(2)\ /\ log(radix),\ powTableH,\ powTableL);}

\end{DoxyCode}
 \doxysubsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \mbox{\hyperlink{a00935}{AAX}}
\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{a00863_ac6d8a45526d6683f24769be9e942fc4e}{\+\_\+\+AAX\+\_\+\+FASTPOW\+\_\+\+H\+\_\+}}
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const unsigned int \mbox{\hyperlink{a00935_a4e6fcac015bb083018e8897563966cf6}{AAX\+::k\+Pow\+Extent}} = 9
\item 
const unsigned int \mbox{\hyperlink{a00935_a59f1ab59ea51ed94f87e8d935870df9e}{AAX\+::k\+Pow\+Table\+Size}} = 1 $<$$<$ k\+Pow\+Extent
\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{a00863_ac6d8a45526d6683f24769be9e942fc4e}\label{a00863_ac6d8a45526d6683f24769be9e942fc4e}} 
\index{AAX\_FastPow.h@{AAX\_FastPow.h}!\_AAX\_FASTPOW\_H\_@{\_AAX\_FASTPOW\_H\_}}
\index{\_AAX\_FASTPOW\_H\_@{\_AAX\_FASTPOW\_H\_}!AAX\_FastPow.h@{AAX\_FastPow.h}}
\doxysubsubsection{\texorpdfstring{\_AAX\_FASTPOW\_H\_}{\_AAX\_FASTPOW\_H\_}}
{\footnotesize\ttfamily \#define \+\_\+\+AAX\+\_\+\+FASTPOW\+\_\+\+H\+\_\+}

