Home
last modified time | relevance | path

Searched refs:multiple_of (Results 1 – 2 of 2) sorted by relevance

/external/dng_sdk/source/
Ddng_safe_arithmetic.cpp229 bool RoundUpUint32ToMultiple(std::uint32_t val, std::uint32_t multiple_of, in RoundUpUint32ToMultiple() argument
232 *result = RoundUpUint32ToMultiple(val, multiple_of); in RoundUpUint32ToMultiple()
240 std::uint32_t multiple_of) { in RoundUpUint32ToMultiple() argument
241 if (multiple_of == 0) { in RoundUpUint32ToMultiple()
245 const std::uint32_t remainder = val % multiple_of; in RoundUpUint32ToMultiple()
249 return SafeUint32Add(val, multiple_of - remainder); in RoundUpUint32ToMultiple()
Ddng_safe_arithmetic.h170 bool RoundUpUint32ToMultiple(std::uint32_t val, std::uint32_t multiple_of,
178 std::uint32_t multiple_of);