HomeSort by: relevance | last modified time | path
    Searched defs:thecrc (Results 1 - 4 of 4) sorted by relevancy

  /src/usr.bin/cksum/
sum1.c 55 u_int thecrc; local in function:csum1
63 thecrc = total = 0;
66 if (thecrc & 1)
67 thecrc |= 0x10000;
68 thecrc = ((thecrc >> 1) + *p) & 0xffff;
73 *cval = thecrc;
sum2.c 53 uint32_t thecrc; local in function:csum2
64 * thecrc = (r % 2^16) + r / 2^16
66 thecrc = 0;
70 thecrc += *p;
74 thecrc = (thecrc & 0xffff) + (thecrc >> 16);
75 thecrc = (thecrc & 0xffff) + (thecrc >> 16)
    [all...]
crc.c 120 uint32_t thecrc; local in function:crc
124 thecrc = 0;
127 thecrc = crc_buf(thecrc, buf, (size_t)nr);
137 thecrc = crc_byte(thecrc, len & 0xff);
140 *cval = ~thecrc;
165 crc_buf(uint32_t thecrc, const void *buf, size_t len)
174 uint32_t a = be32dec(p + 0) ^ thecrc;
178 thecrc
    [all...]
  /src/usr.sbin/mtree/
crc.c 124 uint32_t thecrc, len; local in function:crc
130 thecrc = len = crctot = 0;
136 COMPUTE(thecrc, *p);
141 COMPUTE(thecrc, *p);
151 COMPUTE(thecrc, len & 0xff);
156 COMPUTE(thecrc, len & 0xff);
159 *cval = ~thecrc;

Completed in 12 milliseconds