AAX SDK  2.4.1
Avid Audio Extensions Development Kit
Namespaces | Macros | Variables
AAX_FastPow.h File Reference
#include <cmath>
#include "AAX.h"

Go to the source code of this file.

Description

Set of functions to optimize pow.

To use:

const int kPowTableExtent = 9; // Lower values are less precise. 9 is the maximum
float powTableH[kPowTableSize];
float powTableL[kPowTableSize];
int radix = 2; // This should be whatever radix you want. Ie: radix ^ exp
PowFastSetTable( powTableH, kPowExtent, kPowExtent, false ); // Set the high table
PowFastSetTable( powTableL, kPowExtent*2, kPowExtent, true );// Set the low table
..
result = powFastLookup(exp, log(2) / log(radix), powTableH, powTableL);
const unsigned int kPowExtent
Definition: AAX_FastPow.h:51
const unsigned int kPowTableSize
Definition: AAX_FastPow.h:52

Namespaces

 AAX
 

Macros

#define _AAX_FASTPOW_H_
 

Variables

const unsigned int AAX::kPowExtent = 9
 
const unsigned int AAX::kPowTableSize = 1 << kPowExtent
 

Macro Definition Documentation

◆ _AAX_FASTPOW_H_

#define _AAX_FASTPOW_H_