mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 09:35:22 +00:00
opus_pvq: make max_den a float
Prevents int->float conversions on every loop. Performance gain on synthetic benchmarks: 13%. Suggested by kamedo2. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
parent
d81b34069e
commit
05dfa21d47
@ -381,8 +381,9 @@ static float ppp_pvq_search_c(float *X, int *y, int K, int N)
|
||||
}
|
||||
|
||||
while (K) {
|
||||
int max_idx = 0, max_den = 1, phase = FFSIGN(K);
|
||||
int max_idx = 0, phase = FFSIGN(K);
|
||||
float max_num = 0.0f;
|
||||
float max_den = 1.0f;
|
||||
y_norm += 1.0f;
|
||||
|
||||
for (i = 0; i < N; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user