Make Audio2 consume a tiny bit less cpu
This commit is contained in:
parent
ad1834cf65
commit
32dadb10bf
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ float d_findMaxNormalizedFloat(const float floats[], const std::size_t count)
|
||||||
|
|
||||||
for (std::size_t i=1; i<count; ++i)
|
for (std::size_t i=1; i<count; ++i)
|
||||||
{
|
{
|
||||||
|
if (!std::isfinite(floats[i]))
|
||||||
|
__builtin_unreachable();
|
||||||
|
|
||||||
tmp = std::abs(*floats++);
|
tmp = std::abs(*floats++);
|
||||||
|
|
||||||
if (tmp > maxf2)
|
if (tmp > maxf2)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue