Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * crc16.h - CRC-16 routine
4 *
5 * Implements the standard CRC-16:
6 * Width 16
7 * Poly 0x8005 (x^16 + x^15 + x^2 + 1)
8 * Init 0
9 *
10 * Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com>
11 */
12
13#ifndef __CRC16_H
14#define __CRC16_H
15
16#include <linux/types.h>
17
18u16 crc16(u16 crc, const u8 *p, size_t len);
19
20#endif /* __CRC16_H */
21