Lines Matching refs:checkSum
141 int32_t checkSum = 0; in EncodeImpl() local
143 checkSum = Encode128B(contents, &patterns); in EncodeImpl()
145 checkSum = Encode128C(contents, &patterns); in EncodeImpl()
147 checkSum %= 103; in EncodeImpl()
148 patterns.push_back(checkSum); in EncodeImpl()
175 int32_t checkSum = CODE_START_B * checkWeight; in Encode128B() local
179 checkSum += patternIndex * checkWeight++; in Encode128B()
181 return checkSum; in Encode128B()
189 int32_t checkSum = CODE_START_C * checkWeight; in Encode128C() local
206 checkSum += patternIndex * checkWeight++; in Encode128C()
208 return checkSum; in Encode128C()