mirror of
https://github.com/xiph/opus.git
synced 2025-05-31 23:57: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
|
||||
} else {
|
||||
celt_assert(activation == ACTIVATION_LINEAR);
|
||||
for (i=0;i<N;i++)
|
||||
output[i] = input[i];
|
||||
if (input != output) {
|
||||
for (i=0;i<N;i++)
|
||||
output[i] = input[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue