| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
#ifndef MODULES_AUDIO_PROCESSING_NS_FAST_MATH_H_ |
| 12 |
#define MODULES_AUDIO_PROCESSING_NS_FAST_MATH_H_ |
| 13 |
|
| 14 |
#include "api/array_view.h" |
| 15 |
|
| 16 |
namespace webrtc { |
| 17 |
|
| 18 |
|
| 19 |
float SqrtFastApproximation(float f); |
| 20 |
|
| 21 |
|
| 22 |
float LogApproximation(float x); |
| 23 |
void LogApproximation(rtc::ArrayView<const float> x, rtc::ArrayView<float> y); |
| 24 |
|
| 25 |
|
| 26 |
float Pow2Approximation(float p); |
| 27 |
|
| 28 |
|
| 29 |
float PowApproximation(float x, float p); |
| 30 |
|
| 31 |
|
| 32 |
float ExpApproximation(float x); |
| 33 |
void ExpApproximation(rtc::ArrayView<const float> x, rtc::ArrayView<float> y); |
| 34 |
void ExpApproximationSignFlip(rtc::ArrayView<const float> x, |
| 35 |
rtc::ArrayView<float> y); |
| 36 |
} |
| 37 |
|
| 38 |
#endif |