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