OpenWareLaboratory
fastpow.h
Go to the documentation of this file.
1 #ifndef __fastpow_h__
2 #define __fastpow_h__
3 
4 #include <stdint.h>
5 
6 #ifdef __cplusplus
7  extern "C" {
8 #endif
9 
10  void powFastSetTable(uint32_t* const pTable, const uint32_t precision);
11  float powFastLookup(const float val, const float ilog2, const uint32_t* pTable, const uint32_t precision);
12 
13 #ifdef __cplusplus
14 }
15 #endif
16 
17 #endif // __basicmaths_h__
float powFastLookup(const float val, const float ilog2, const uint32_t *pTable, const uint32_t precision)
Get pow (fast!).
Definition: fastpow.c:46
void powFastSetTable(uint32_t *const pTable, const uint32_t precision)
Definition: fastpow.c:20