| AAX SDK 2.6.1 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
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);

## Namespaces
namespace | 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_