blob: 6ea8e3edcea47a65b00b16a8b701a0c73fe0edc5 [file] [log] [blame]
Andrew Walbran3d2c1972020-04-07 12:24:26 +01001//===-- llvm/Support/CRC.h - Cyclic Redundancy Check-------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains basic functions for calculating Cyclic Redundancy Check
10// or CRC.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_SUPPORT_CRC_H
15#define LLVM_SUPPORT_CRC_H
16
17#include "llvm/ADT/StringRef.h"
18#include "llvm/Support/DataTypes.h"
19
20namespace llvm {
21/// zlib independent CRC32 calculation.
22uint32_t crc32(uint32_t CRC, StringRef S);
23} // end namespace llvm
24
25#endif