mirror of
https://github.com/xiph/opus.git
synced 2025-06-02 16:47:42 +00:00
Don't compute linear activation in-place
saves a few cycles
This commit is contained in:
parent
bf5eb5bf8d
commit
83e95a5ce6
1 changed files with 4 additions and 2 deletions
|
@ -184,8 +184,10 @@ void compute_activation(float *output, const float *input, int N, int activation
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
celt_assert(activation == ACTIVATION_LINEAR);
|
celt_assert(activation == ACTIVATION_LINEAR);
|
||||||
for (i=0;i<N;i++)
|
if (input != output) {
|
||||||
output[i] = input[i];
|
for (i=0;i<N;i++)
|
||||||
|
output[i] = input[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue