mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 23:00:59 +00:00
indent
This commit is contained in:
parent
ae9d3d42cf
commit
3b6e7d0ce1
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -191,7 +191,7 @@ uint16_t util_crc16(uint16_t current, const char *k, size_t len) {
|
||||||
uint16_t util_crc16(const char *k, int len, const short clamp) {
|
uint16_t util_crc16(const char *k, int len, const short clamp) {
|
||||||
register uint16_t h= (uint16_t)0xFFFFFFFF;
|
register uint16_t h= (uint16_t)0xFFFFFFFF;
|
||||||
for (; len; --len, ++k)
|
for (; len; --len, ++k)
|
||||||
h = util_crc16_table[(h^((unsigned char)*k))&0xFF]^(h>>8);
|
h = util_crc16_table[(h^((unsigned char)*k))&0xFF]^(h>>8);
|
||||||
return (~h)%clamp;
|
return (~h)%clamp;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue