#include <stdint.h>Go to the source code of this file.
Functions | |
| int | ff_exp2 (uint16_t power) |
| fixed-point implementation of exp2(x) in [0; 1] domain. More... | |
| int | ff_log2_q15 (uint32_t value) |
| Calculate log2(x). More... | |
| static int | bidir_sal (int value, int offset) |
| Shift value left or right depending on sign of offset parameter. More... | |
|
inlinestatic |
Shift value left or right depending on sign of offset parameter.
| value | value to shift |
| offset | shift offset |
Definition at line 52 of file celp_math.h.
| int ff_exp2 | ( | uint16_t | power | ) |
fixed-point implementation of exp2(x) in [0; 1] domain.
| power | argument to exp2, 0 <= power <= 0x7fff |
Definition at line 47 of file celp_math.c.
| int ff_log2_q15 | ( | uint32_t | value | ) |
Calculate log2(x).
| value | function argument, 0 < value <= 7fff ffff |
Definition at line 70 of file celp_math.c.
Referenced by ff_acelp_update_past_gain().