MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / wp_exp2

Function wp_exp2

libavcodec/wavpack.c:162–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160};
161
162static av_always_inline int wp_exp2(int16_t val)
163{
164 int res, neg = 0;
165
166 if(val < 0){
167 val = -val;
168 neg = 1;
169 }
170
171 res = wp_exp2_table[val & 0xFF] | 0x100;
172 val >>= 8;
173 res = (val > 9) ? (res << (val - 9)) : (res >> (9 - val));
174 return neg ? -res : res;
175}
176
177static av_always_inline int wp_log2(int32_t val)
178{

Callers 2

update_error_limitFunction · 0.85
wavpack_decode_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected