From 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:14:33 +0200 Subject: Merging upstream version 4.4.0. Signed-off-by: Daniel Baumann --- wsutil/crc16.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wsutil/crc16.c') diff --git a/wsutil/crc16.c b/wsutil/crc16.c index dfb2e2d6..547206b1 100644 --- a/wsutil/crc16.c +++ b/wsutil/crc16.c @@ -375,7 +375,7 @@ static const uint16_t crc16_usb_xorout = 0xFFFF; static uint16_t crc16_unreflected(const uint8_t *buf, unsigned len, uint16_t crc_in, const unsigned table[]) { - /* we use guints, rather than guint16s, as they are likely to be + /* we use uints, rather than uint16s, as they are likely to be faster. We just ignore the top 16 bits and let them do what they want. */ unsigned crc16 = (unsigned)crc_in; @@ -389,7 +389,7 @@ static uint16_t crc16_unreflected(const uint8_t *buf, unsigned len, static uint16_t crc16_reflected(const uint8_t *buf, unsigned len, uint16_t crc_in, const unsigned table[]) { - /* we use guints, rather than guint16s, as they are likely to be + /* we use uints, rather than uint16s, as they are likely to be faster. We just ignore the top 16 bits and let them do what they want. XXX - does any time saved not zero-extending uint16_t's to 32 bits into a register outweigh any increased cache footprint from the -- cgit v1.2.3