#include "KoMixColorsOp.h"
#include <QtGlobal>
#include <type_traits>
#include <KisCppQuirks.h>
#include <KoColorSpaceMaths.h>
#include "kis_debug.h"
#include "kis_global.h"
Go to the source code of this file.
|
| template<typename T > |
| static T | safeDivideWithRound (T dividend, std::enable_if_t< std::numeric_limits< T >::is_integer, T > divisor) |
| |
| template<typename T > |
| static T | safeDivideWithRound (T dividend, std::enable_if_t<!std::numeric_limits< T >::is_integer, T > divisor) |
| |
◆ safeDivideWithRound() [1/2]
template<typename T >
| static T safeDivideWithRound |
( |
T | dividend, |
|
|
std::enable_if_t< std::numeric_limits< T >::is_integer, T > | divisor ) |
|
inlinestatic |
Definition at line 29 of file KoMixColorsOpImpl.h.
30 {
31 return (dividend + divisor / 2) / divisor;
32}
◆ safeDivideWithRound() [2/2]
template<typename T >
| static T safeDivideWithRound |
( |
T | dividend, |
|
|
std::enable_if_t<!std::numeric_limits< T >::is_integer, T > | divisor ) |
|
inlinestatic |