diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /wsutil/crc16.c | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wsutil/crc16.c')
-rw-r--r-- | wsutil/crc16.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |