mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Converted some old uses of non-C++ maths functions to their std equivalents
This commit is contained in:
parent
15e40d48ba
commit
ff99aec1ab
9 changed files with 100 additions and 99 deletions
|
|
@ -69,7 +69,7 @@ void WindowingFunction<FloatType>::fillWindowingTables (FloatType* samples, size
|
|||
auto halfSlots = static_cast<FloatType> (0.5) * static_cast<FloatType> (size - 1);
|
||||
|
||||
for (size_t i = 0; i < size; ++i)
|
||||
samples[i] = static_cast<FloatType> (1.0) - std::fabs ((static_cast<FloatType> (i) - halfSlots) / halfSlots);
|
||||
samples[i] = static_cast<FloatType> (1.0) - std::abs ((static_cast<FloatType> (i) - halfSlots) / halfSlots);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue