Lines Matching refs:checkSum
138 int32_t checkSum = 0; in EncodeImpl() local
140 checkSum = Encode128B(contents, &patterns); in EncodeImpl()
142 checkSum = Encode128C(contents, &patterns); in EncodeImpl()
144 checkSum %= 103; in EncodeImpl()
145 patterns.push_back(checkSum); in EncodeImpl()
169 int32_t checkSum = CODE_START_B * checkWeight; in Encode128B() local
173 checkSum += patternIndex * checkWeight++; in Encode128B()
175 return checkSum; in Encode128B()
183 int32_t checkSum = CODE_START_C * checkWeight; in Encode128C() local
200 checkSum += patternIndex * checkWeight++; in Encode128C()
202 return checkSum; in Encode128C()