Searched refs:multiple_of (Results 1 - 3 of 3) sorted by relevance

/external/dng_sdk/source/
H A Ddng_safe_arithmetic.cpp229 bool RoundUpUint32ToMultiple(std::uint32_t val, std::uint32_t multiple_of, argument
232 *result = RoundUpUint32ToMultiple(val, multiple_of);
240 std::uint32_t multiple_of) {
241 if (multiple_of == 0) {
242 ThrowProgramError("multiple_of is zero in RoundUpUint32ToMultiple");
245 const std::uint32_t remainder = val % multiple_of;
249 return SafeUint32Add(val, multiple_of - remainder);
239 RoundUpUint32ToMultiple(std::uint32_t val, std::uint32_t multiple_of) argument
H A Ddng_safe_arithmetic.h166 // Finds the smallest integer multiple of 'multiple_of' that is greater than or
168 // and returns true. Otherwise, or if 'multiple_of' is zero, returns false and
170 bool RoundUpUint32ToMultiple(std::uint32_t val, std::uint32_t multiple_of,
173 // Returns the smallest integer multiple of 'multiple_of' that is greater than
175 // 'multiple_of' is zero, throws a dng_exception with error code
178 std::uint32_t multiple_of);
/external/vixl/src/aarch32/
H A Doperands-aarch32.h805 int multiple_of = 1) const {
807 ((offset_ % multiple_of) == 0);

Completed in 126 milliseconds