35#ifndef _BLAZE_MATH_SHIMS_NEXTMULTIPLE_H_
36#define _BLAZE_MATH_SHIMS_NEXTMULTIPLE_H_
67template<
typename T1,
typename T2 >
70 return ( value + ( factor - ( value % factor ) ) % factor );
BLAZE_ALWAYS_INLINE constexpr auto nextMultiple(T1 value, T2 factor) noexcept
Rounds up an integral value to the next multiple of a given factor.
Definition: NextMultiple.h:68
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
System settings for the inline keywords.