Lines Matching full:operand
41 // Returns operand % kBase, assuming that kBase is a power of two.
42 static inline uint32_t ModBase(uint32_t operand) {
43 return operand & (kBase - 1);
46 // Given an unsigned integer "operand", returns an unsigned integer "result"
50 // ModBase(operand + result) == 0
51 static inline uint32_t FindModBaseInverse(uint32_t operand) {
52 // The subtraction (0 - operand) produces an unsigned underflow for any
53 // operand except 0. The underflow results in a (very large) unsigned
58 // The C++ mod operation (operand % kBase) may produce different results for
59 // different compilers if operand is negative. That is not a problem in
62 return ModBase(uint32_t(0) - operand);