<commit_before>/*
 * Copyright 2016 <NAME> <ludwig.knuepfer@fu-berlin.de>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @defgroup    sys_checksum_crc16_ccitt CRC16-CCITT
 * @ingroup     sys_checksum
 *
 * @brief       Variations of CRC16-CCITT checksum algorithms
 * @details     This provides implementations for multiple variations
 *              of CRC16 checks.
 *              There is a more generalized version in @ref sys_checksum_ucrc16,
 *              that does not utilize a look-up table as these implementation
 *              do (and is thus also far more memory efficient). Its caveat
 *              however is that it is slower by about factor 8 than these versions.
 *
 *              @note enable the `crc32_fast` module for a look-up table based
 *              implementation that trades code size for speed.
 *
 * @{
 * @file
 * @author      <NAME> <ludwig.knuepfer@fu-berlin.de>
 * @author      <NAME> <<EMAIL>>
 */

#ifndef CHECKSUM_CRC16_CCITT_H
#define CHECKSUM_CRC16_CCITT_H

#include <stdint.h>
#include <stdlib.h>
<commit_msg>sys/checksum: update CRC-16 documentation<commit_after>/*
 * Copyright 2016 <NAME> <l<EMAIL>@fu-<EMAIL>.de>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @defgroup    sys_checksum_crc16_ccitt CRC16-CCITT
 * @ingroup     sys_checksum
 *
 * @brief       Variations of CRC16-CCITT checksum algorithms
 * @details     This provides implementations for multiple variations
 *              of CRC16 checks.
 *
 *              There is a more generalized version in @ref sys_checksum_ucrc16,
 *              that does not optionally utilize a look-up table as these implementations
 *              can do (and is thus also far more memory efficient). Its caveat
 *              however is that it is slower by about factor 8 than these versions when
 *              enabling the look-up table.
 *
 *              @note enable the `crc16_fast` module for a look-up table based
 *              implementation that trades code size for speed.
 *
 * @{
 * @file
 * @author      <NAME> <ludwig.knuepfer@fu-berlin.de>
 * @author      <NAME> <<EMAIL>>
 */

#ifndef CHECKSUM_CRC16_CCITT_H
#define CHECKSUM_CRC16_CCITT_H

#include <stdint.h>
#include <stdlib.h>

{'fraction_non_alphanumeric': 0.07933950865888038, 'fraction_numerical': 0.019331453886427707, 'mean_word_length': 2.6422287390029324, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4209579', 'n_tokens_mistral': 772, 'n_tokens_neox': 720, 'n_words': 270}