Searched refs:sum1 (Results 1 – 1 of 1) sorted by relevance
1975 let mut sum1: u16 = 0; in fletcher_16_checksum() localVariable1978 sum1 = (sum1 + (c as u16)) % 0xff; in fletcher_16_checksum()1979 sum2 = (sum1 + sum2) & 0xff; in fletcher_16_checksum()1981 return (sum2 << 8) | sum1; in fletcher_16_checksum()