Audacity 3.2.0
|
Go to the source code of this file.
Functions | |
template<typename LType , typename RType > | |
auto | RoundUpUnsafe (LType numerator, RType denominator) noexcept |
Returns a rounded up integer result for numerator / denominator. More... | |
|
noexcept |
Returns a rounded up integer result for numerator / denominator.
RoundUpUnsafe(4, 2) == 2; RoundUpUnsafe(3, 2) == 2; RoundUpUnsafe(-3, 2) == -1;
This function does not check if denominator is 0 of if there is an integer overflow.
Definition at line 21 of file RoundUpUnsafe.h.
Referenced by anonymous_namespace{WaveDataCache.cpp}::AppendBufferHelper::FillBlocksFromAppendBuffer(), anonymous_namespace{WaveDataCache.cpp}::AppendBufferHelper::FillBuffer(), anonymous_namespace{WaveDataCache.cpp}::MakeDefaultDataProvider(), GraphicsDataCacheBase::PerformCleanup(), and anonymous_namespace{WaveDataCache.cpp}::processBlock().